This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.apib
77 lines (54 loc) · 2.22 KB
/
doc.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FORMAT: 1A
# Data Structures
## Instruction
+ id (number, required)
+ name: Инструкция по сбору X баннера (string, required)
## NewDetail (object)
+ count: 2 (number, required)
+ name: Пластиковая ножка с держателем ролла (string, required)
+ shortName: A (string, required)
+ link: http://teamcenter.indieteam.ru/1.zip (string, required)
## Detail (object)
+ id (number, required)
+ count: 2 (number, required)
+ name: Пластиковая ножка с держателем ролла (string, required)
+ shortName: A (string, required)
## NewStep (object)
+ description: Взять деталь A (string, required)
## Step (object)
+ id (number, required)
+ description: Взять деталь A (string, required)
## ControlPoints
+ id (number, required)
+ username: ivanov (string, required)
+ time: 1234567890 (number, required)
+ instructionId: 1 (number, required)
# ARIS
## Инструкции [/api/v1/instructions]
### Создать инструкцию [POST /api/v1/instructions]
+ Request 200 (application/json)
+ Attributes
+ name: Инструкция по сбору X баннера (string, required)
+ details (array[NewDetail], required, fixed-type)
+ steps (array[NewStep], required, fixed-type)
+ Response 200 (application/json)
### Получить инструкции [GET /api/v1/instructions]
+ Response 200 (application/json)
+ Attributes
+ instructions (array[Instruction], required, fixed-type)
### Получить инструкцию [GET /api/v1/instructions/{id}]
+ Parameters
+ id: 1 (string, required)
+ Response 200 (application/json)
+ Attributes
+ details (array[Detail], required, fixed-type)
+ steps (array[Step], required, fixed-type)
## Контрольные точки [/control_points]
### Получить контрольные точки [GET /api/v1/control_points]
+ Response 200 (application/json)
+ Attributes
+ control_points (array[ControlPoints], required, fixed-type)
### Создать контрольную точку [POST /api/v1/control_points/{username}]
+ Parameters
+ username: ivanov (string, required)
+ Response 200 (application/json)