All Projects → OpenAPITools → openapi-petstore

OpenAPITools / openapi-petstore

Licence: Apache-2.0 license
The pet store sample

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to openapi-petstore

swagger-petstore
petstore.swagger.io
Stars: ✭ 84 (+140%)
Mutual labels:  openapi, openapi3, petstore
openapi-eller
Generate OpenAPI v3 clients and servers from the command line
Stars: ✭ 19 (-45.71%)
Mutual labels:  openapi, openapi3, openapi-codegen
sbt-openapi-schema
Generate schema sources for Scala, Java and Elm from an openapi 3.0 spec.
Stars: ✭ 12 (-65.71%)
Mutual labels:  openapi, openapi3, openapi-codegen
ogen
OpenAPI v3 code generator for go
Stars: ✭ 436 (+1145.71%)
Mutual labels:  openapi, openapi3, openapi-codegen
light-rest-4j
A RESTful framework built on top of light-4j with both Swagger 2.0 and OpenAPI 3.0 supports
Stars: ✭ 113 (+222.86%)
Mutual labels:  openapi, openapi3, openapi-codegen
Unchase.OpenAPI.Connectedservice
📜 Visual Studio extension to generate OpenAPI (Swagger) web service reference.
Stars: ✭ 69 (+97.14%)
Mutual labels:  openapi, openapi3, openapi-codegen
fastify-openapi-glue
A plugin for Fastify to autogenerate a configuration based on a OpenApi(v2/v3) specification.
Stars: ✭ 94 (+168.57%)
Mutual labels:  openapi, openapi3, openapi-codegen
openapimux
Open API router in go
Stars: ✭ 21 (-40%)
Mutual labels:  openapi, openapi3
intellij-openapi-generator
Intellij Plugin for openapi-generator
Stars: ✭ 73 (+108.57%)
Mutual labels:  openapi, openapi3
swaggerhub-cli
SwaggerHub CLI
Stars: ✭ 28 (-20%)
Mutual labels:  openapi, openapi3
specifications-ITS-REST
openEHR REST API Specifications
Stars: ✭ 20 (-42.86%)
Mutual labels:  openapi, openapi3
swagger-converter
OpenAPI/Swagger 2.0 to OpenAPI 3.0 Converter WebService
Stars: ✭ 58 (+65.71%)
Mutual labels:  openapi, openapi3
openapi
OpenAPI 3 Specification for golang
Stars: ✭ 18 (-48.57%)
Mutual labels:  openapi, openapi3
openapi-filter
Filter internal paths, operations, parameters, schemas etc from OpenAPI/Swagger/AsyncAPI definitions
Stars: ✭ 112 (+220%)
Mutual labels:  openapi, openapi3
openapi-viewer
Browse and test a REST API described with the OpenAPI 3.0 Specification
Stars: ✭ 85 (+142.86%)
Mutual labels:  openapi, openapi3
openapi4j
OpenAPI 3 parser, JSON schema and request validator.
Stars: ✭ 92 (+162.86%)
Mutual labels:  openapi, openapi3
aws2openapi
Amazon Web Services API description to OpenAPI 3.0 definition
Stars: ✭ 45 (+28.57%)
Mutual labels:  openapi, openapi3
oas
OpenAPI Spec builder in go
Stars: ✭ 15 (-57.14%)
Mutual labels:  openapi, openapi3
openapi-generator-go
An opinionated OpenAPI v3 code generator for Go. Use this to generate API models and router scaffolding.
Stars: ✭ 42 (+20%)
Mutual labels:  openapi, openapi3
HibiAPI
一个实现了多种常用站点的易用化API的程序 / A program that implements easy-to-use APIs for a variety of commonly used sites.
Stars: ✭ 427 (+1120%)
Mutual labels:  openapi, openapi3

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:

  • client-id: sample-client-id
  • client-secret: secret
  • username: user
  • password: user

Configuration

Spring parameters in application.properties:

  • Server port : server.port (default=8080)
  • API base path : openapi.openAPIPetstore.base-path (default=/v3). In the docker image the base path can also be set with the OPENAPI_BASE_PATH environment variable.

Environment variables:

  • DISABLE_API_KEY : if set to "1", the server will not check the api key for the relevant endpoints.
  • DISABLE_OAUTH : if set to "1", the server will not check for an OAuth2 access token.

License

Apache 2.0 License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].