-
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.
Merge pull request #131 from wepala/dev
Sprint 22
- Loading branch information
Showing
50 changed files
with
6,943 additions
and
183 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ components: | |
url: | ||
type: string | ||
format: uri | ||
x-unique: true | ||
title: | ||
type: string | ||
description: | ||
|
@@ -76,9 +77,9 @@ components: | |
type: string | ||
nullable: true | ||
enum: | ||
- null | ||
- unpublished | ||
- published | ||
- "null" | ||
- one | ||
- two | ||
image: | ||
type: string | ||
format: byte | ||
|
@@ -116,6 +117,55 @@ components: | |
type: string | ||
format: date-time | ||
paths: | ||
/: | ||
get: | ||
operationId: Homepage | ||
responses: | ||
200: | ||
description: Application Homepage | ||
content: | ||
text/html: | ||
example: | | ||
<html> | ||
<head> | ||
<title>Health</title> | ||
</head> | ||
<body> | ||
This is a landing page | ||
</body> | ||
</html> | ||
/page: | ||
get: | ||
summary: Test | ||
parameters: | ||
- in: header | ||
name: Accept | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: Test Page | ||
content: | ||
text/html: | ||
example: | | ||
<html> | ||
<head> | ||
<title>Test Page</title> | ||
</head> | ||
<body> | ||
This is a test page | ||
</body> | ||
</html> | ||
schema: | ||
type: string | ||
application/json: | ||
example: | ||
blog: | ||
value: { | ||
"title": "API Testing", | ||
"url": "www.example.com", | ||
"email": "[email protected]" | ||
} | ||
/health: | ||
summary: Health Check | ||
get: | ||
|
@@ -125,6 +175,28 @@ paths: | |
description: Health Response | ||
500: | ||
description: API Internal Error | ||
/api/json: | ||
get: | ||
operationId: Get API Details | ||
x-controller: APIDiscovery | ||
responses: | ||
200: | ||
description: API Details | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
/api/html: | ||
get: | ||
operationId: Get API Details | ||
x-controller: APIDiscovery | ||
responses: | ||
200: | ||
description: API Details | ||
content: | ||
application/html: | ||
schema: | ||
type: string | ||
/blogs: | ||
post: | ||
operationId: Add Blog | ||
|
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,64 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Tasks API | ||
description: Tasks API | ||
version: 1.0.0 | ||
servers: | ||
- url: 'http://localhost:8681' | ||
x-weos-config: | ||
database: | ||
driver: sqlite3 | ||
database: e2e.db | ||
components: | ||
securitySchemes: | ||
Auth0: | ||
type: openIdConnect | ||
openIdConnectUrl: https://samples.auth0.com/.well-known/openid-configuration | ||
schemas: | ||
Task: | ||
type: object | ||
properties: | ||
title: | ||
type: string | ||
security: | ||
- Auth0: ["email","name"] | ||
paths: | ||
/tasks: | ||
get: | ||
description: Get a list of tasks | ||
operationId: getTasks | ||
security: | ||
- Auth0: [] | ||
responses: | ||
200: | ||
description: List of tasks | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
total: | ||
type: integer | ||
page: | ||
type: integer | ||
items: | ||
$ref: "#/components/schemas/Task" | ||
|
||
post: | ||
description: Create task | ||
operationId: createTask | ||
requestBody: | ||
description: Task | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/Task" | ||
application/x-www-form-urlencoded: | ||
schema: | ||
$ref: "#/components/schemas/Task" | ||
responses: | ||
201: | ||
description: Created task | ||
|
||
|
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
Oops, something went wrong.