Forum Discussion
Hi,
We have a single endpoint to which we can make multiple request and each request is identified by an identifier query parameter.
Currently this parameter accept 17 values and may increase in future, We want to show documentation for this request for all different values.
Can we show Endpoints for all different values as a separate endpoint rather than showing single parameter
For eg-
As per our documentation
API -> /demo
queryParam : identifier =<Values>
Our requirement is to show endpoints separately as given below
API 1 - /demo?identifier=value1
API 2 - /demo?identifier=value2
- Tushar4 years agoNew Contributor
Following is the swagger file excerpt, We have included 2 GET methods under /api/r4/Claim endpoint,Similarly we want more GET methods to be added under /api/r4/Claim.
/api/r4/Claim:
get:
summary: Searches for Claim resources by query parameters
tags:
- Claim
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/BundleClaimR4'
'401':
description: UnAuthorized
'403':
description: Forbidden
'404':
description: Not Found
parameters:
- name: identifier
in: query
description: The identifier to search for
required: false
schema:
type: stringget:
summary: Searches for Claim resources by query parameters
tags:
- Claim
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/BundleClaimR4'
'401':
description: UnAuthorized
'403':
description: Forbidden
'404':
description: Not Found
parameters:
- name: patient
in: query
description: Patient identifier or reference to search for
required: false
schema:
type: string - nmrao4 years ago
Champion Level 2
Is this related to swagger Ui?- Tushar4 years agoNew Contributor
It's related to Swagger Editor as we are trying to add Multiple GET methods under single /api/r4/Claim endpoint.
- TanyaYatskovska4 years ago
Alumni
HI Tushar,
If it's related with Swagger Editor, perhaps, it's worth asking this question in the Swagger community. You can find it here:
https://community.smartbear.com/t5/Swagger-Open-Source-Tools/bd-p/SwaggerOSTools