Details

    • Type: Story Story
    • Status: To Do To Do (View Workflow)
    • Priority: Normal Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Customer:
      NEP_3.X

      Description

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

      Issue Links

        Activity

        Ahmed Osman made changes -
        Field Original Value New Value
        Gantt Options Milestone (set to milestone: having a due date but zero effort)
        Planned Start 2024-04-29 24:00 (milestone: set planned start date to due date)
        Planned End 2024-04-29 24:00 (milestone: set planned end date to due date)
        Ahmed Osman made changes -
        Attachment catalog_comparision.xlsx [ 99903 ]
        Ahmed Osman made changes -
        Attachment catalog_comparision.xlsx [ 99903 ]
        Ahmed Osman made changes -
        Attachment TM_forum_APIs.xlsx [ 99904 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-8 [ ACE-8 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-19 [ ACE-19 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-17 [ ACE-17 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-18 [ ACE-18 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-21 [ ACE-21 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-12 [ ACE-12 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-20 [ ACE-20 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-11 [ ACE-11 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-10 [ ACE-10 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-22 [ ACE-22 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-9 [ ACE-9 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-16 [ ACE-16 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-15 [ ACE-15 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-14 [ ACE-14 ]
        Ahmed Osman made changes -
        Link This issue is blocked by ACE-13 [ ACE-13 ]
        Ahmed Osman made changes -
        Description - Discover and search for the APIs, list the useful ones
        - Skeleton for the code
        - Discover and search the APIs, list the useful ones
        - Skeleton for the code
        Hide
        Ahmed Osman added a comment - - edited

        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.

        Show
        Ahmed Osman added a comment - - edited 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.
        Hassan Abdine made changes -
        Labels TMF
        Subversion JIRA

        Links Hierarchy

         Documentation

        Invalid license: EXPIRED

          People

          • Assignee:
            Unassigned
            Reporter:
            Ahmed Osman
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Planned Start:
              Planned End:

              Drag and Drop