-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.apib
51 lines (35 loc) · 1.11 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
FORMAT: 1A
# Template Ruby Grape API
This project is a simple template API uses Grape framework and Ruby language.
# Group Project
Resources related to Project in the API.
## Project Collection [/projects]
### List the only one Project [GET]
+ Response 200 (application/json)
+ Attributes (Project)
### Create a new Project [POST]
+ Request (application/json)
+ Attributes
+ name: Project name (string, required)
+ description: Project description (string)
+ Response 201 (application/json)
+ Attributes (Project)
## Project [/projects/{id}]
### Delete a Project [DELETE]
+ Parameters
+ id (number, required) - Project ID
+ Response 204
### Update a Project [PUT]
+ Parameters
+ id (number, required) - Project ID
+ Request (application/json)
+ Attributes
+ name: Project name (string, required)
+ description: Project description (string, required)
+ Response 200 (application/json)
+ Attributes (Project)
## Data Structures
### Project (object)
+ id: 1 (number, required)
+ name: Project name (string, required)
+ description: Project description (string)