-
Notifications
You must be signed in to change notification settings - Fork 5
/
apiary.apib
73 lines (59 loc) · 1.72 KB
/
apiary.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
FORMAT: 1A
HOST: https://poeditor.com/api/
# POEditor
Stubs for the POEditor API.
# Group Projects
## List Projects [/]
### Create a Note [POST]
+ Request (application/x-www-form-urlencoded)
api_token=a9824103d8729b923fbe1d268ec69ef9&action=list_projects
+ Response 200 (application/json)
{
"response":{
"status":"success",
"code":"200",
"message":"OK"
},
"list":[
{
"id":"4886",
"name":"Twentytwelve",
"public":"0",
"open":"0",
"created":"2013-04-12 09:24:42"
},
{
"id":"4537",
"name":"contact form",
"public":"0",
"open":"0",
"created":"2013-04-02 23:00:06"
},
{
"id":"6639",
"name":"POEditor WP plugin",
"public":"0",
"open":"0",
"created":"2013-06-05 17:41:25"
},
{
"id":"6268",
"name":"Test Project",
"public":"0",
"open":"0",
"created":"2013-05-23 14:26:34"
}
]
}
## Note [/notes/{id}]
A single Note object with all its details
+ Parameters
+ id (required, number, `1`) ... Numeric `id` of the Note to perform action with. Has example value.
### Retrieve a Note [GET]
+ Response 200 (application/json)
+ Header
X-My-Header: The Value
+ Body
{ "id": 2, "title": "Pick-up posters from post-office" }
### Remove a Note [DELETE]
+ Response 204