Skip to content

Commit

Permalink
Merge c2398a0 into dc414cb
Browse files Browse the repository at this point in the history
  • Loading branch information
benisi committed Aug 22, 2019
2 parents dc414cb + c2398a0 commit 79beda8
Show file tree
Hide file tree
Showing 33 changed files with 1,135 additions and 148 deletions.
50 changes: 43 additions & 7 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ paths:
tags:
- Users
summary: Creates a new user.
security:
- ApiKeyAuth: []
requestBody:
description: fields containing user data
content:
Expand Down Expand Up @@ -72,6 +70,22 @@ paths:
description: resource already exists
500:
description: internal server error
/notifications:
get:
tags:
- Notification
summary: get all notification of the login user
security:
- ApiKeyAuth: []
responses:
200:
description: array of notification object
content:
application/json:
schema:
$ref: '#/components/schemas/Notification'
500:
description: internal server error
/novels:
post:
tags:
Expand Down Expand Up @@ -465,8 +479,8 @@ paths:
in: path
required: true
schema:
type: integer
example: '1'
type: string
example: '0ce36391-2c08-4703-bddb-a4ea8cccbbc5'
responses:
200:
description: profile details of user
Expand Down Expand Up @@ -665,7 +679,6 @@ components:
- firstName
- lastName
- email
- username
type: object
properties:
firstName:
Expand Down Expand Up @@ -763,6 +776,29 @@ components:
type: integer
bio:
type: string
Notification:
type: object
properties:
notifications:
type: array
items:
type: object
properties:
actor:
type: string
example: eden hazard
message:
type: string
example: created a novel with the title
novelTitle:
type: string
example: Religion And Spirituality
novelUrl:
type: string
example: /api/v1/novels/1
createdAt:
type: string
example: 2019-08-07 11:54:44.713+01
ForgotPasswordUser:
required:
- email
Expand Down Expand Up @@ -825,7 +861,7 @@ components:
type: boolean
example: true
securitySchemes:
bearerToken:
ApiKeyAuth:
type: apiKey
name: Authorization
in: header
name: authorization
Loading

0 comments on commit 79beda8

Please sign in to comment.