Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30973

REST API - Different name for property routing rule at proxy api

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 3.37.3, 3.40.0, 3.40.1
    • APT, REST
    • None

    Description

      Hi Nexus3 team,

      i detect that the routing rule property of all proxy repositories has different names in the json of the HTTP GET call response and the HTTP POST call body parameters.

      Example for APT:

      • POST
        "AptProxyRepositoryApiRequest": {
        
        ...
        
                "routingRule": {
                    "type": "string"
                },
            }
        },
        
      • GET:
        "AptProxyApiRepository": {
        
        ...
        
                "routingRuleName": {
                    "type": "string",
                    "description": "The name of the routing rule assigned to this repository"
                },
            }
        },
        

      It is hard to build a struct/class in go if the attributes have different names in the POST and GET call at the API.

      Please use the same name for an attribute.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Anmoel Andre Moeller
              Andre Moeller Andre Moeller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title