cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger inherit query and path parameters

acarreras
Occasional Visitor

Swagger inherit query and path parameters

Hi, I am building an API that has multiple endpoints to request resources. Most of this endpoints can have the same query and path parameters (e.j the project where they are stored or the limit on how many resources to display).

Is there a way to inherited this query and path parameters with $ref?

1 REPLY 1
HKosova
Moderator

Re: Swagger inherit query and path parameters

Hi @acarreras, check out the Describing Parameters guide - it has some examples of how to handle common parameters.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements