Skip to content

Commit 22e983b

Browse files
Merge pull request #991 from scieloorg/beta
Incorporação de códigos estáveis
2 parents 5800e7a + ac55d1a commit 22e983b

File tree

166 files changed

+25741
-3209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+25741
-3209
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ settings_local.include
66
*.coverage
77
_build/
88
bundle.min*
9+
.DS_Store

docs/dev/api.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ access, but for future releases more methods will be added.
99
If you have any problems or requests please contact
1010
`support <http://groups.google.com/group/scielo-discuss/>`_.
1111

12-
**Current version:** API v1
12+
**Current version:** API v2 (continue providing support for v1)
1313

1414

1515
.. note::
@@ -41,7 +41,9 @@ Available endpoints
4141
users-api
4242
changes-api
4343
pressreleases-api
44-
attempts-api
44+
checkin-api
45+
notices-api
46+
checkins_articles-api
4547

4648

4749
.. note::

docs/dev/changes-api.rst

+39-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,15 @@ resource_uri
6161
List all events
6262
---------------
6363

64-
Request::
64+
Request:
6565

66-
GET /api/v1/changes
66+
**API version 1**
67+
68+
*GET /api/v1/changes*
69+
70+
**API version 2**
71+
72+
*GET /api/v1/changes*
6773

6874
Parameters:
6975

@@ -83,3 +89,34 @@ Optional Parameters:
8389
**since**
8490

8591
*Int* of the ``seq`` number used as a starting point to the query.
92+
93+
94+
Response version 1 and version 2::
95+
96+
{
97+
"meta": {
98+
"limit": 200,
99+
"next": null,
100+
"offset": 0,
101+
"previous": null,
102+
"total_count": 28
103+
},
104+
"objects": [
105+
{
106+
"changed_at": "2014-04-23T15:23:01.909588",
107+
"collection_uri": "/api/v2/collections/1/",
108+
"event_type": "added",
109+
"object_uri": "/api/v2/journals/319/",
110+
"resource_uri": "/api/v2/changes/1/",
111+
"seq": 1
112+
},
113+
{
114+
"changed_at": "2014-04-23T15:29:23.524776",
115+
"collection_uri": "/api/v2/collections/1/",
116+
"event_type": "added",
117+
"object_uri": "/api/v2/journals/320/",
118+
"resource_uri": "/api/v2/changes/2/",
119+
"seq": 2
120+
},
121+
]
122+
}

docs/dev/checkin-api.rst

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Notices API
2+
===============
3+
4+
List all notices
5+
--------------------
6+
7+
Request:
8+
9+
**API version 1**
10+
11+
*GET /api/v1/notices*
12+
13+
**API version 2**
14+
15+
*GET /api/v2/notices*
16+
17+
Parameters:
18+
19+
**--**
20+
21+
Optional Parameters:
22+
23+
**callback**
24+
25+
*String* of the callback identifier to be returned when using JSONP.
26+
27+
**format**
28+
29+
*String* of the desired output format. The options are **xml, json,
30+
yml**.
31+
32+
Allowed Method:
33+
34+
GET, PUT, POST
35+
36+
Response:
37+
38+
**API version 1 and version 2**::
39+
40+
{
41+
"meta": {
42+
"limit": 200,
43+
"next": null,
44+
"offset": 0,
45+
"previous": null,
46+
"total_count": 6
47+
},
48+
"objects": [
49+
{
50+
"checkin": "/api/v2/checkins/5/",
51+
"checkpoint": "checkin",
52+
"created_at": "2014-08-11T13:36:41.147189",
53+
"id": 72,
54+
"message": "bla",
55+
"resource_uri": "/api/v2/notices/72/",
56+
"stage": "Checkin",
57+
"status": "SERV_END"
58+
},
59+
]
60+
}
61+
62+
63+
Get a single notice
64+
------------------------------
65+
66+
Request:
67+
68+
**API version 1**
69+
70+
*GET /api/v1/notices/:id/*
71+
72+
**API version 2**
73+
74+
*GET /api/v2/notices/:id/*
75+
76+
77+
Parameters:
78+
79+
**--**
80+
81+
Optional Parameters:
82+
83+
**callback**
84+
85+
*String* of the callback identifier to be returned when using JSONP.
86+
87+
**format**
88+
89+
*String* of the desired output format. The options are **xml, json,
90+
yml**.
91+
92+
93+
Response:
94+
95+
**API version 1 and version 2**::
96+
97+
{
98+
checkin: "/api/v2/checkins/5/",
99+
checkpoint: "checkin",
100+
created_at: "2014-08-11T13:36:41.147189",
101+
id: 72,
102+
message: "bla",
103+
resource_uri: "/api/v2/notices/72/",
104+
stage: "Checkin",
105+
status: "SERV_END"
106+
}

0 commit comments

Comments
 (0)