Forum Discussion

s11's avatar
s11
New Member
12 months ago

SWAGGER

HOW TO WRITE NESTED PARAMETERS IN SWAGGER LIKE:

 

openapi.Parameter('Token', openapi.IN_QUERY, description="Token received at the time of verification",required='Token', type=openapi.TYPE_INTEGER),
                   openapi.Parameter('AuthString', openapi.IN_QUERY, description="Auth string provided", required='AuthString',type=openapi.TYPE_STRING),
                   openapi.Parameter('DateOfData', openapi.IN_QUERY, description="Date of data", required='DateOfData',type=openapi.FORMAT_DATE), 
 
 
THESE STATEMENTS TO ADD SUBCATAGORIES LIKE ID, LOCATION AND USE TO TOKEN PARAMETER

1 Reply

  • chichepo's avatar
    chichepo
    Champion Level 3

    hi s11 

     

    I am not sure to understand your issue / question.

    you got this definition:

     

    What do you mean here?:


    s11 wrote:
    THESE STATEMENTS TO ADD SUBCATAGORIES LIKE ID, LOCATION AND USE TO TOKEN PARAMETER