[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: Microsoft Excel TM_forum_APIs.xlsx    
Issue Links:
Blocks
is blocked by ACE-8 TMF642 - Alarm Management API To Do
is blocked by ACE-9 TMF655 - Change Management API To Do
is blocked by ACE-10 TMF667 - Document Management API To Do
is blocked by ACE-11 TMF662 - Entity Catalog Management API To Do
is blocked by ACE-12 TMF673 - Geographic Address Managemen... To Do
is blocked by ACE-13 TMF674 - Geographic Site Management API To Do
is blocked by ACE-14 TMF724 - Incident Management API To Do
is blocked by ACE-15 TMF620 - Product Catalog Management API To Do
is blocked by ACE-16 TMF637 - Product Inventory Management... To Do
is blocked by ACE-17 TMF634 - Resource Catalog Management API To Do
is blocked by ACE-18 TMF639 - Resource Inventory Managemen... To Do
is blocked by ACE-19 TMF633 - Service Catalog Management API To Do
is blocked by ACE-20 TMF638 - Service Inventory Management... To Do
is blocked by ACE-21 TMF657 - Service Quality Management API To Do
is blocked by ACE-22 TMF915 - AI Management API To Do
Customer:
NEP_3.X
Planned Start:
Planned End:

 Description   
  • Discover and search the APIs, list the useful ones
  • Skeleton for the code


 Comments   
Comment by Ahmed Osman [ 02/Jan/25 ]

Generating SpringBoot Server Code

Option 1: Installing OpenAPI Generator CLI

1. Install the OpenAPI Generator CLI:

  • macOS/Linux:
    brew install openapi-generator
  • Using npm (Node.js):
    npm install @openapitools/openapi-generator-cli -g

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
Make sure to replace the following values in the command for both Option 1 and Option 2:

1. API Specification File

  • In the second line, replace api-spec.yaml with the correct TMF API specification file.
  • Example:
  • Go to ACE 8 - TMF642 and download the Raw JSON API.
  • Save the file. The default name will be something like:
    TMF642_Alarm_Management_API_v4.0.0_swagger.json
  • Update the second line of the command:
    -i /local/api-spec.yaml

    to:

    -i /local/TMF642_Alarm_Management_API_v4.0.0_swagger.json

2. Replace TMF Number

  • Replace tmfXXX in the groupId or artifactId properties with the correct TMF number for your API (e.g., tmf642).

3. API Version

  • If you have a newer version (e.g., v5), update the references from v4 to v5 in the filename and artifactVersion.

Option 2 (Using Docker)
If you have Docker installed, you can use the following command:

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.

Generated at Mon Jun 15 14:12:13 EEST 2026 using JIRA 6.1.4#6159-sha1:44eaedef2e4a625c6c7183698b2468d4719c20dc.