aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi/fortee.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'openapi/fortee.yaml')
-rw-r--r--openapi/fortee.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/openapi/fortee.yaml b/openapi/fortee.yaml
new file mode 100644
index 0000000..a27c721
--- /dev/null
+++ b/openapi/fortee.yaml
@@ -0,0 +1,38 @@
+openapi: 3.0.0
+info:
+ title: Albatross internal web API
+ version: 0.1.0
+paths:
+ /api/user/login:
+ post:
+ operationId: postLogin
+ summary: User login
+ requestBody:
+ required: true
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ type: object
+ properties:
+ username:
+ type: string
+ example: "john"
+ password:
+ type: string
+ example: "password123"
+ required:
+ - username
+ - password
+ responses:
+ '200':
+ description: Successfully authenticated
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ loggedIn:
+ type: boolean
+ example: true
+ required:
+ - loggedIn