Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/okunev-e/restapi_examples

Contract API (REST and may be others) examples
https://github.com/okunev-e/restapi_examples

openapi-specification openapi3 rest-api restapi restfull-api swagger

Last synced: 13 days ago
JSON representation

Contract API (REST and may be others) examples

Awesome Lists containing this project

README

        

# Примеры проектирования API
---
#### Содержание
- [Описание REST API с JSON](#restapi_json)
---

В этом разделе хочу показать примеры описания контрактов API, которые приходилось выполнять на разных проектах.

---
### Описание контрактов API, предоставляемых через веб-сервис REST API
Разработка описания выполнялась в Swagger.
Исходный код: [openapi_example.yml](https://github.com/okunev-e/restapi_examples/blob/main/swagger/openapi_example.yml)
Пример прошел успешную валидацию на [swagger.io](https://editor.swagger.io/) и на [yamllint.com](https://www.yamllint.com/).
Посмотреть вживую можно по этой ссылке: [посмотреть пример](https://petstore.swagger.io/?url=https://raw.githubusercontent.com/okunev-e/restapi_examples/main/swagger/openapi_example.yml).