| Test of RESTful APIs in 5G Service Based Architecture with Titan [message #1808201]
||Wed, 19 June 2019 08:28
|| Elemer Lelik
Registered: January 2015
The demand for easily scalable systems that can be tailored for new situations stimulated a migration from telecom-style protocol interfaces to web-based APIs. The 5G core network will be based on what is called "Service-Based Architecture" (SBA), centered around services that can register themselves and subscribe to other services. This enables a more flexible development of new services, as it becomes possible to connect to other components without introducing specific new interfaces. The new system architecture is specified in 3GPP technical specification 23.501:
One of the advantages of the SBA is that there is no need for specialized APIs, a common protocol stack can be used:
More about SBA here:
Now, if we check the standards for these interfaces:
we will see that they are specified in YAML (according to OpenAPI v3) , e.g.
and Titan does not have any explicit support for YAML.
However, YAML is a superset of JSON ( for instance it does support comments), see a YAML-JSON comparison here:
so in general a YAML to JSON conversion does not represent a problem.
( a YAML to JSON on-line converter can be found here:
We are not out of the woods yet: our goal is to produce some kind of TTCN-3 structures that describe the API, and, as discussed earlier in a number of posts, e.g.
How to convert JSON into TTCN-3(TITAN tool convert JSON TTCN3)
there is no scripted support in Titan for JSON to TTCN-3 conversion.
Nevertheless this can be performed as a mental exercise as JSON has a small number of structures that can be easily converted to TTCN-3.
Using this spectacular mentalist trick we have produced a number of protocol modules for 5G RESTful APIs; they can be cloned from the below URLs:
Of course, this workflow can be used as a general recipe for any REST API specified in JSON or YAML.
[Updated on: Sun, 12 January 2020 08:31]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01805 seconds