[ACE-7] TM Forum Open APIs Created: 22/Apr/24 Updated: 15/Jun/26 Due: 29/Apr/24 |
|
| Status: | To Do |
| Project: | ACE |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | Ahmed Osman | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | TMF | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Customer: |
NEP_3.X
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Planned Start: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Planned End: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
| Comments |
| Comment by Ahmed Osman [ 02/Jan/25 ] |
|
Generating SpringBoot Server Code Option 1: Installing OpenAPI Generator CLI 1. Install the OpenAPI Generator CLI:
Command Run the following command using the installed CLI:
openapi-generator-cli generate \
-i /local/api-spec.yaml \
-g spring \
-o /local/out/spring \
-p generateApiTests=true \
-p generateModelTests=true \
-p interfaceOnly=false \
-p delegatePattern=true \
--additional-properties="\
groupId=com.nettom.tmfXXX,\
artifactId=tmfXXX-api,\
artifactVersion=v4,\
springBootVersion=2.7.18,\
java8=true,\
basePackage=com.nettom.tmfXXX.v4,\
apiPackage=com.nettom.tmfXXX.v4.api,\
modelPackage=com.nettom.tmfXXX.v4.model,\
configPackage=com.nettom.tmfXXX.v4.config\
"
Additional Instructions 1. API Specification File
2. Replace TMF Number
3. API Version
Option 2 (Using Docker)
docker run --rm \
-v "$PWD:/local" \
openapitools/openapi-generator-cli generate \
-i /local/api-spec.yaml \
-g spring \
-o /local/out/spring \
-p generateApiTests=true \
-p generateModelTests=true \
-p interfaceOnly=false \
-p delegatePattern=true \
--additional-properties="\
groupId=com.nettom.tmfXXX,\
artifactId=tmfXXX-api,\
artifactVersion=v4,\
springBootVersion=2.7.18,\
java8=true,\
basePackage=com.nettom.tmfXXX.v4,\
apiPackage=com.nettom.tmfXXX.v4.api,\
modelPackage=com.nettom.tmfXXX.v4.model,\
configPackage=com.nettom.tmfXXX.v4.config\
"
Note: Follow the same Additional Instructions for this option to replace the API specification file, TMF number, and version appropriately. |