-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from Sureshkumars/main
Add a capability to ignore specific operations from openapi by custom extensions
- Loading branch information
Showing
15 changed files
with
274 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: My API | ||
version: 1.0.0 | ||
paths: | ||
/pets: | ||
get: | ||
operationId: getPets | ||
x-internal: true | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/ListPetsRes' | ||
post: | ||
operationId: createPet | ||
requestBody: | ||
description: Pet object to create | ||
content: | ||
application/json: {} | ||
responses: | ||
'201': | ||
$ref: '#/components/responses/PetRes' | ||
'/pets/{id}': | ||
get: | ||
operationId: getPetById | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/PetRes' | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
x-internal: true | ||
components: | ||
schemas: | ||
Pet: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
minimum: 1 | ||
name: | ||
type: string | ||
example: Odie | ||
responses: | ||
ListPetsRes: | ||
description: ok | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Pet' | ||
PetRes: | ||
description: ok | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Pet' | ||
securitySchemes: | ||
ApiKeyHeaderAuth: | ||
type: apiKey | ||
in: header | ||
name: x-apikey | ||
description: API key sent as a header | ||
BasicAuth: | ||
type: http | ||
scheme: basic | ||
description: Basic username/password authentication sent in Authorization header | ||
BearerAuth: | ||
type: http | ||
scheme: bearer | ||
description: Bearer token sent in Authorization header | ||
ApiKeyCookieAuth: | ||
type: apiKey | ||
in: cookie | ||
name: apikey | ||
description: API key sent as a cookie | ||
ApiKeyQueryAuth: | ||
type: apiKey | ||
in: query | ||
name: apikey | ||
description: API key sent as a query parameter | ||
security: | ||
- BasicAuth: [] | ||
- BearerAuth: [] | ||
- ApiKeyHeaderAuth: [] | ||
- ApiKeyCookieAuth: [] | ||
- ApiKeyQueryAuth: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: My API | ||
version: 1.0.0 | ||
paths: | ||
/pets: | ||
post: | ||
operationId: createPet | ||
requestBody: | ||
description: Pet object to create | ||
content: | ||
application/json: {} | ||
responses: | ||
'201': | ||
$ref: '#/components/responses/PetRes' | ||
components: | ||
schemas: | ||
Pet: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
minimum: 1 | ||
name: | ||
type: string | ||
example: Odie | ||
responses: | ||
PetRes: | ||
description: ok | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Pet' | ||
securitySchemes: | ||
ApiKeyHeaderAuth: | ||
type: apiKey | ||
in: header | ||
name: x-apikey | ||
description: API key sent as a header | ||
BasicAuth: | ||
type: http | ||
scheme: basic | ||
description: Basic username/password authentication sent in Authorization header | ||
BearerAuth: | ||
type: http | ||
scheme: bearer | ||
description: Bearer token sent in Authorization header | ||
ApiKeyCookieAuth: | ||
type: apiKey | ||
in: cookie | ||
name: apikey | ||
description: API key sent as a cookie | ||
ApiKeyQueryAuth: | ||
type: apiKey | ||
in: query | ||
name: apikey | ||
description: API key sent as a query parameter | ||
security: | ||
- BasicAuth: [] | ||
- BearerAuth: [] | ||
- ApiKeyHeaderAuth: [] | ||
- ApiKeyCookieAuth: [] | ||
- ApiKeyQueryAuth: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.