TAPI icon indicating copy to clipboard operation
TAPI copied to clipboard

How to correct get list of objects for RPC operations?

Open NikolayKolyada opened this issue 9 years ago • 1 comments

Hello!

In the last version of TAPI we found next: All PRC operations for get list of some objects, for example "/operations/getConnectivityServiceList/", contains List with concrete object. Swagger example:

  GetConnectivityServiceListRPCOutputSchema:
    properties:
      connService:
        items:
          $ref: '#/definitions/ConnectivityService'
        type: array
        description: none

And this behavior valid for all swagger files and all requests for lists of objects(GetServiceEndPointListRPCOutputSchema, GetConnectionListRPCOutputSchema, GetConnectivityServiceListRPCOutputSchema and etc.).

BUT only for : "/operations/getTopologyList/" previous behavior is broken. "/operations/getTopologyList/" return list of UUID's. Example:

  GetTopologyListRPCOutputSchema:
    properties:
      topology:
        items:
          type: string
          x-path: '/Context/_topology/{uuid}/'
        type: array
        description: none

What is the right behaviour of the items listed above?

Thanks!

NikolayKolyada avatar Oct 28 '16 12:10 NikolayKolyada

To keep it consistent with the SCRUD flavor of our RESTConf mapping, I believe it should always be returning list of references (uuid)

karthik-sethuraman avatar Nov 16 '16 13:11 karthik-sethuraman

RPCs are out of the scope of TAPI.

amazzini avatar Mar 20 '24 17:03 amazzini