Skip to content

Commit

Permalink
Merge branch 'feature/WEOS-1343' of github.com:wepala/weos into featu…
Browse files Browse the repository at this point in the history
…re/WEOS-1343
  • Loading branch information
shaniah868 committed Feb 14, 2022
2 parents aab0c90 + 87a9af3 commit 1a5b302
Show file tree
Hide file tree
Showing 2 changed files with 413 additions and 0 deletions.
64 changes: 64 additions & 0 deletions conf/tasks.yaml
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


Loading

0 comments on commit 1a5b302

Please sign in to comment.