https://github.com/gptscript-ai/petstore
Petstore OpenAPI example
https://github.com/gptscript-ai/petstore
Last synced: 12 months ago
JSON representation
Petstore OpenAPI example
- Host: GitHub
- URL: https://github.com/gptscript-ai/petstore
- Owner: gptscript-ai
- License: apache-2.0
- Created: 2024-04-05T19:28:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T20:29:52.000Z (almost 2 years ago)
- Last Synced: 2025-06-28T23:42:48.749Z (12 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# petstore
This is an implementation of the [Petstore API](https://github.com/OAI/OpenAPI-Specification/blob/66fe9db36115bbf5425892aaaac6dba5e3c5df59/examples/v3.0/petstore.yaml).
One difference is that this does not support the creation of new pets.
This API is currently being served at https://petstore.gptscript-demos.ai.
## Running the server
```bash
git clone https://github.com/gptscript-ai/petstore.git
cd petstore
docker build -t petstore .
docker run --rm -p 8080:8080 petstore
# Send a request to the server:
curl localhost:8080/pets
```
## GPTScript example
```
Tools: https://petstore.gptscript-demos.ai/openapi
List all the pets. What are the names of the dogs?
```