forked from abak-press/apress-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: move swagger to apress-documentation
- Loading branch information
1 parent
798cdc3
commit 0cc731e
Showing
17 changed files
with
104 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
source "https://gems.railsc.ru" | ||
source "https://rubygems.org" | ||
|
||
gem 'apress-documentation', git: '[email protected]:abak-press/apress-documentation.git' | ||
|
||
# Specify your gem's dependencies in apress-api.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module BadRequest | ||
def self.extended(base) | ||
base.response 400 do | ||
key :description, "Переданные параметры не могут быть обработаны" | ||
schema do | ||
key :'$ref', :'Swagger::V1::::Models::Apress::Api::UnprocessableError' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module NotFound | ||
def self.extended(base) | ||
base.response 404 do | ||
key :description, "Запрашиваемый ресурс не найден" | ||
schema do | ||
key :'$ref', :'Swagger::V1::::Models::Apress::Api::SimpleError' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module Unauthenticated | ||
def self.extended(base) | ||
base.response 401 do | ||
key :description, "Запрос не прошел аутентификацию (проблема с подписью запроса)" | ||
schema do | ||
key :'$ref', :'Swagger::V1::::Models::Apress::Api::SimpleError' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module Unauthorized | ||
def self.extended(base) | ||
base.response 403 do | ||
key :description, "Нет доступа к ресурсу" | ||
schema do | ||
key :'$ref', :'Swagger::V1::::Models::Apress::Api::SimpleError' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module Unprocessable | ||
def self.extended(base) | ||
base.response 422 do | ||
key :description, "Переданные параметры не валидны" | ||
schema do | ||
key :'$ref', :'Swagger::V1::::Models::Apress::Api::UnprocessableError' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Swagger | ||
module DefaultResponses | ||
module UpdatedLocked | ||
def self.extended(base) | ||
base.response 503 do | ||
key :description, "Закрыто редактирование" | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.