Skip to content

Commit

Permalink
swagger for dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nouraan-ahmed committed May 16, 2022
1 parent ffc6501 commit 2a2082c
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions public/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ paths:
items:
type: array
items: []
example: ['x', 30, 60]
example: ["x", 30, 60]
formula:
type: string
example: "x+y"
Expand All @@ -48,13 +48,13 @@ paths:
items:
type: array
items: []
example: [['x', 30, 60], ['y', 0, 5]]
example: [["x", 30, 60], ["y", 0, 5]]
formulas:
type: array
items:
type: array
items: []
example: [['What is 5 + 6?', 7], ['What is 4 + 5', 6]]
example: [["What is 5 + 6?", 7], ["What is 4 + 5", 6]]
type: object
responses:
"201":
Expand Down Expand Up @@ -107,7 +107,7 @@ paths:
items:
type: array
items: []
example: ['x', 30, 60]
example: ["x", 30, 60]
formula:
type: string
example: "x+y"
Expand All @@ -116,13 +116,13 @@ paths:
items:
type: array
items: []
example: [['x', 30, 60], ['y', 0, 5]]
example: [["x", 30, 60], ["y", 0, 5]]
formulas:
type: array
items:
type: array
items: []
example: [['What is 5 + 6?', 7], ['What is 4 + 5', 6]]
example: [["What is 5 + 6?", 7], ["What is 4 + 5", 6]]
type: object
responses:
"200":
Expand All @@ -143,7 +143,7 @@ paths:
description: Forbidden
security:
- bearer: []

"/tags":
description: Get all tags
get:
Expand Down Expand Up @@ -2203,7 +2203,29 @@ paths:
description: Forbidden
security:
- bearer: []
"/statistics/{exam}":
description: Dashboard "statistics"
get:
tags:
- "Dashboard"
responses:
"200":
description: Success
content:
application/json:
schema:
properties:
type: object
message:
type: String
example: "Dashboard view!"

"401":
description: Unauthenticated
"403":
description: Forbidden
security:
- bearer: []
components:
schemas:
StoreManualRequest:
Expand Down

0 comments on commit 2a2082c

Please sign in to comment.