To Map Multiple Get Request to Single Endpoint.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To Map Multiple Get Request to Single Endpoint.
Hi,
Is it possible to map multiple GET requests to single Endpoint without parameters.
Is there any Solution for this?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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: string
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: patient
in: query
description: Patient identifier or reference to search for
required: false
schema:
type: string
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's related to Swagger Editor as we are trying to add Multiple GET methods under single /api/r4/Claim endpoint.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is not related to ReadyAPI community then we can mark it as closed or we can move it to Swagger Community @TanyaYatskovska what you suggest
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
Thanks and Regards,
Himanshu Tayal
