Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update openapi.yml #1

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Spectral
run: npm install -g @stoplight/spectral-cli
- name: Run Spectral
Expand Down
10 changes: 10 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
description: This is a sample server for a pet store.
license:
name: MIT
contact:
name: API Support
url: https://example.com/support
email: [email protected]
servers:
- url: http://petstore.swagger.io/v1
tags:
- name: pets
paths:
/pets:
get:
summary: List all pets
description: Retrieve a list of all the pets in the store.
operationId: listPets
tags:
- pets
Expand Down Expand Up @@ -42,6 +50,7 @@ paths:
$ref: "#/components/schemas/Error"
post:
summary: Create a pet
description: Create a new pet.
operationId: createPets
tags:
- pets
Expand All @@ -57,6 +66,7 @@ paths:
/pets/{petId}:
get:
summary: Info for a specific pet
description: Load the details of the specified pet.
operationId: showPetById
tags:
- pets
Expand Down