OpenAPI $ref reusable parameter
Using $ref
to reference a reusable parameter in an OpenAPI specification is a key practice for keeping your API definitions clean, consistent, and maintainable. This method centralizes common parameters, like Authorization
headers or a userId
path parameter, in a single location and allows you to reference them from any endpoint.