An open API service indexing awesome lists of open source software.

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

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?
```