mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
chore: fix markdown in demo
This commit is contained in:
parent
f96c481b34
commit
757a92e425
|
@ -7,75 +7,38 @@ servers:
|
||||||
info:
|
info:
|
||||||
description: |
|
description: |
|
||||||
This is a sample server Petstore server.
|
This is a sample server Petstore server.
|
||||||
|
|
||||||
You can find out more about Swagger at
|
You can find out more about Swagger at
|
||||||
|
[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).
|
||||||
[http://swagger.io](http://swagger.io) or on [irc.freenode.net,
|
For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||||
#swagger](http://swagger.io/irc/).
|
|
||||||
|
|
||||||
For this sample, you can use the api key `special-key` to test the
|
|
||||||
authorization filters.
|
|
||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
This API is documented in **OpenAPI format** and is based on
|
This API is documented in **OpenAPI format** and is based on
|
||||||
|
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
||||||
[Petstore sample](http://petstore.swagger.io/) provided by
|
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
||||||
[swagger.io](http://swagger.io) team.
|
tool and [ReDoc](https://github.com/Rebilly/ReDoc) documentation. In addition to standard
|
||||||
|
OpenAPI syntax we use a few [vendor extensions](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md).
|
||||||
It was **extended** to illustrate features of
|
|
||||||
[generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
||||||
|
|
||||||
tool and [ReDoc](https://github.com/Rebilly/ReDoc) documentation. In
|
|
||||||
addition to standard
|
|
||||||
|
|
||||||
OpenAPI syntax we use a few [vendor
|
|
||||||
extensions](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
||||||
|
|
||||||
# OpenAPI Specification
|
# OpenAPI Specification
|
||||||
|
|
||||||
This API is documented in **OpenAPI format** and is based on
|
This API is documented in **OpenAPI format** and is based on
|
||||||
|
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
||||||
[Petstore sample](http://petstore.swagger.io/) provided by
|
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
||||||
[swagger.io](http://swagger.io) team.
|
tool and [ReDoc](https://github.com/Rebilly/ReDoc) documentation. In addition to standard
|
||||||
|
OpenAPI syntax we use a few [vendor extensions](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md).
|
||||||
It was **extended** to illustrate features of
|
|
||||||
[generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
||||||
|
|
||||||
tool and [ReDoc](https://github.com/Rebilly/ReDoc) documentation. In
|
|
||||||
addition to standard
|
|
||||||
|
|
||||||
OpenAPI syntax we use a few [vendor
|
|
||||||
extensions](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
||||||
|
|
||||||
# Cross-Origin Resource Sharing
|
# Cross-Origin Resource Sharing
|
||||||
|
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).
|
||||||
This API features Cross-Origin Resource Sharing (CORS) implemented in
|
|
||||||
compliance with [W3C spec](https://www.w3.org/TR/cors/).
|
|
||||||
|
|
||||||
And that allows cross-domain communication from the browser.
|
And that allows cross-domain communication from the browser.
|
||||||
|
All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
|
||||||
All responses have a wildcard same-origin which makes them completely public
|
|
||||||
and accessible to everyone, including any code on any site.
|
|
||||||
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"test": "value",
|
|
||||||
"test2": "value2"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
|
||||||
Petstore offers two forms of authentication:
|
Petstore offers two forms of authentication:
|
||||||
- API Key
|
- API Key
|
||||||
- OAuth2
|
- OAuth2
|
||||||
|
|
||||||
OAuth2 - an open protocol to allow secure authorization in a simple
|
OAuth2 - an open protocol to allow secure authorization in a simple
|
||||||
and standard method from web, mobile and desktop applications.
|
and standard method from web, mobile and desktop applications.
|
||||||
|
|
||||||
<!-- ReDoc-Inject: <security-definitions> -->
|
<security-definitions />
|
||||||
|
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
title: Swagger Petstore
|
title: Swagger Petstore
|
||||||
|
|
Loading…
Reference in New Issue
Block a user