Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit

Permalink
feat: creation of a petstore-simple alternative with no tags
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jun 14, 2024
1 parent 06f6aa1 commit 5fcb308
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
59 changes: 59 additions & 0 deletions 3.0/json/petstore-simple-no-tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Petstore simple w/o tags",
"description": "This ia variant of `petstore-simple` except that there are no `tags` configured."
},
"servers": [
{
"url": "https://httpbin.org"
}
],
"paths": {
"/pet/{id}": {
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"put": {
"summary": "Update a pet",
"description": "This operation will update a pet in the database.",
"responses": {
"400": {
"description": "Invalid id value"
}
},
"security": [
{
"apiKey": []
}
]
},
"get": {
"summary": "Find a pet",
"description": "This operation will find a pet in the database.",
"responses": {
"400": {
"description": "Invalid status value"
}
},
"security": []
}
}
},
"components": {
"securitySchemes": {
"apiKey": {
"type": "http",
"scheme": "basic"
}
}
}
}
36 changes: 36 additions & 0 deletions 3.0/yaml/petstore-simple-no-tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
openapi: 3.0.0
info:
version: 1.0.0
title: Petstore simple w/o tags
description: This ia variant of `petstore-simple` except that there are no `tags`
configured.
servers:
- url: https://httpbin.org
paths:
'/pet/{id}':
parameters:
- name: id
in: path
required: true
schema:
type: integer
put:
summary: Update a pet
description: This operation will update a pet in the database.
responses:
'400':
description: Invalid id value
security:
- apiKey: []
get:
summary: Find a pet
description: This operation will find a pet in the database.
responses:
'400':
description: Invalid status value
security: []
components:
securitySchemes:
apiKey:
type: http
scheme: basic

0 comments on commit 5fcb308

Please sign in to comment.