Skip to content

Commit

Permalink
Merge pull request #1 from shapehq/simonbs-patch-1
Browse files Browse the repository at this point in the history
Update openapi.yml
  • Loading branch information
simonbs authored Sep 20, 2024
2 parents 3082c03 + d7a78d5 commit 297e674
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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

0 comments on commit 297e674

Please sign in to comment.