@@ -66,6 +66,20 @@ To generate the server stubs, follow these steps:
### Client SDK
The Client SDK source code is generated using [Swagger Codegen](https://github.com/swagger-api/swagger-codegen).
The OpenAPI Specifications files available on ETSI Forge use version 3.1 of OAS. Currently this version is not supported on Swagger Codegen or on any other OAS code generater. To generate the server stubs, first the OAS files will need to be converted to OAS version 3.0 via the following steps:
- Change the value of openapi field from 3.1.0 to 3.0.0
- Use this VS code extension to see the errors in the downgraded YAML (v3.0)
- Manually fix the errors
To generate the server stubs, follow these steps:
1. Open Swagger Editor
2. Copy past the YAML
3. Select 'Generate Client' and 'go'
4. A zip file containing the client stubs will be generated
5. Unzip the archive into go-package/meep-<MECidentifier>-client folder
6. Switch to clause [Client-side](#client-side)
> Note: Both Go language and Java language client SDK are generated. The Go client SDK is required to develop the testing tool for the MEC-030 micro-service (see clause Creating test code).
The Java client SDK is required to develop the backend of a MEC application using MEC030 micro-service.
@@ -195,9 +209,10 @@ meep-<mec-identifier>
### Client-side
During the phase of code generation (see [code generation](#generating-server-and-client-side-code)), two stubs of code are generated:
1. The server code
2. The client code (see clause Client SDK)
2. The client code (see clause [Client SDK](#client-sdk))
The code is used to create a test application for the micro-service. This test application can be used either in command line or integrated into the AdvantEDGE testing tool.
The code is used to create a test module or application for the micro-service.
The test application can be used either in command line or integrated into the AdvantEDGE testing tool.
#### Code organization
@@ -332,71 +347,11 @@ meep-<mec-identifier>
2.**Implement tests for unimplemented methods**
For each HTTP methods some tests for valid behavior and unexpected behovior shall be created.
The code below is an example of what is expected here: