Skip to content

Commit

Permalink
Updated Swagger's API Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
7riumph committed Feb 8, 2025
1 parent 0c9e62d commit fb6dc3d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
13 changes: 9 additions & 4 deletions spec/swagger_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@
login_success: {
type: :object,
properties: {
id: {type: :integer},
display_name: {type: :string},
email: {type: :string},
token: {type: :string}
api_token: {type: :string},
refresh_token: {type: :string},
user: {
id: {type: :integer},
display_name: {type: :string},
email: {type: :string},
token_expires_at: {type: :datetime},
refresh_token_expires_at: {type: :datetime}
}
}
},
login_failure: {
Expand Down
19 changes: 13 additions & 6 deletions swagger/v1/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ components:
login_success:
type: object
properties:
id:
type: integer
display_name:
api_token:
type: string
email:
type: string
token:
refresh_token:
type: string
user:
id:
type: integer
display_name:
type: string
email:
type: string
api_token_expires_at:
type: datetime
refresh_token_expires_at:
type: datetime
login_failure:
type: object
properties:
Expand Down

0 comments on commit fb6dc3d

Please sign in to comment.