s11
2 years agoNew Member
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