1 |
6b3c455c
|
hlavja
|
openapi: 3.0.1
|
2 |
|
|
info:
|
3 |
|
|
title: SensLog
|
4 |
|
|
description: 'ASWI semestral project of CodeBakers.'
|
5 |
|
|
version: 1.0.0
|
6 |
|
|
externalDocs:
|
7 |
|
|
description: Find out more about Swagger
|
8 |
|
|
url: http://swagger.io
|
9 |
|
|
servers:
|
10 |
f8b9a3a2
|
hlavja
|
- url: http://localhost:4200
|
11 |
|
|
|
12 |
6b3c455c
|
hlavja
|
tags:
|
13 |
|
|
- name: login
|
14 |
|
|
description: Login process
|
15 |
|
|
externalDocs:
|
16 |
|
|
description: Find out more
|
17 |
|
|
url: https://www.senslog.org/api/v1/
|
18 |
|
|
- name: group
|
19 |
|
|
description: Groups endpoints
|
20 |
|
|
paths:
|
21 |
f8b9a3a2
|
hlavja
|
/senslog1/ControllerServlet:
|
22 |
6b3c455c
|
hlavja
|
post:
|
23 |
|
|
tags:
|
24 |
|
|
- login
|
25 |
|
|
summary: Authorize login
|
26 |
|
|
operationId: login
|
27 |
f8b9a3a2
|
hlavja
|
parameters:
|
28 |
6b3c455c
|
hlavja
|
- in: query
|
29 |
f8b9a3a2
|
hlavja
|
name: username
|
30 |
6b3c455c
|
hlavja
|
schema:
|
31 |
|
|
type: string
|
32 |
|
|
description: User login
|
33 |
|
|
- in: query
|
34 |
|
|
name: password
|
35 |
|
|
schema:
|
36 |
|
|
type: string
|
37 |
|
|
description: User password
|
38 |
|
|
responses:
|
39 |
|
|
200:
|
40 |
|
|
description: successful operation
|
41 |
|
|
content:
|
42 |
|
|
application/json:
|
43 |
|
|
schema:
|
44 |
f8b9a3a2
|
hlavja
|
$ref: '#/components/schemas/UserInfo'
|
45 |
|
|
|
46 |
|
|
/senslog1/GroupService:
|
47 |
6b3c455c
|
hlavja
|
get:
|
48 |
|
|
tags:
|
49 |
|
|
- group
|
50 |
|
|
summary: Get groups
|
51 |
|
|
operationId: getGroups
|
52 |
|
|
parameters:
|
53 |
|
|
- in: query
|
54 |
f8b9a3a2
|
hlavja
|
name: Operation
|
55 |
6b3c455c
|
hlavja
|
required: true
|
56 |
|
|
schema:
|
57 |
|
|
type: string
|
58 |
|
|
default: GetGroups
|
59 |
|
|
enum:
|
60 |
|
|
- GetGroups
|
61 |
|
|
- GetSuperGroups
|
62 |
|
|
- GetSubGroups
|
63 |
|
|
description: Group operation
|
64 |
|
|
- in: query
|
65 |
|
|
name: parent_group
|
66 |
|
|
schema:
|
67 |
|
|
type: integer
|
68 |
|
|
responses:
|
69 |
|
|
200:
|
70 |
|
|
description: successful operation
|
71 |
|
|
content:
|
72 |
|
|
application/json:
|
73 |
|
|
schema:
|
74 |
|
|
type: array
|
75 |
|
|
items:
|
76 |
|
|
$ref: '#/components/schemas/Group'
|
77 |
f8b9a3a2
|
hlavja
|
|
78 |
6b3c455c
|
hlavja
|
components:
|
79 |
|
|
schemas:
|
80 |
f8b9a3a2
|
hlavja
|
UserInfo:
|
81 |
6b3c455c
|
hlavja
|
type: object
|
82 |
|
|
properties:
|
83 |
|
|
sessionid:
|
84 |
|
|
type: string
|
85 |
f8b9a3a2
|
hlavja
|
example: rv6pe5o30091
|
86 |
6b3c455c
|
hlavja
|
language:
|
87 |
|
|
type: string
|
88 |
|
|
example: en
|
89 |
|
|
audio:
|
90 |
|
|
type: boolean
|
91 |
|
|
default: false
|
92 |
f8b9a3a2
|
hlavja
|
|
93 |
6b3c455c
|
hlavja
|
Group:
|
94 |
|
|
type: object
|
95 |
|
|
properties:
|
96 |
|
|
id:
|
97 |
|
|
type: integer
|
98 |
|
|
format: int64
|
99 |
|
|
example: 1
|
100 |
|
|
parent_group_id:
|
101 |
|
|
type: integer
|
102 |
|
|
format: int64
|
103 |
|
|
example: 2
|
104 |
|
|
group_name:
|
105 |
|
|
type: string
|
106 |
|
|
example: testGroup
|
107 |
|
|
has_children:
|
108 |
|
|
type: boolean
|
109 |
|
|
default: false
|