OpenAPI petstore

This is an implementation of the OpenAPI pet store based on Spring-Boot.

Overview

Start your server as a simple Spring-Boot application

mvn spring-boot:run

Or package it then run it as a Java application

mvn package
java -jar target/openapi-petstore-{VERSION}.jar

You can view the api documentation in swagger-ui by pointing to
http://localhost:8080/

Docker

To start the server via docker, please run the following commands:

docker pull openapitools/openapi-petstore
docker run -d -e OPENAPI_BASE_PATH=/v3 -p 80:8080 openapitools/openapi-petstore

Ref: https://hub.docker.com/r/openapitools/openapi-petstore/

Security

API key

Use special-key for endpoints protected by the API key

OAuth2

By default the server supports the implicit and the password flow (even though only the implicit flow is described in the OAI spec) The default credentials are:

Configuration

Spring parameters in application.properties:

Environment variables:

License

Apache 2.0 License