Skip to content

Commit

Permalink
Correção na documentação dos endpoints da API
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilatta committed Sep 29, 2014
1 parent a797c41 commit 79472e2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 44 deletions.
14 changes: 7 additions & 7 deletions docs/dev/checkin-api.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Notices API
Checkins API
===============

List all notices
List all checkins
--------------------

Request:

**API version 1**

*GET /api/v1/notices*
*GET /api/v1/checkins*

**API version 2**

*GET /api/v2/notices*
*GET /api/v2/checkins*

Parameters:

Expand Down Expand Up @@ -60,18 +60,18 @@ Response:
}


Get a single notice
Get a single checkin
------------------------------

Request:

**API version 1**

*GET /api/v1/notices/:id/*
*GET /api/v1/checkins/:id/*

**API version 2**

*GET /api/v2/notices/:id/*
*GET /api/v2/checkins/:id/*


Parameters:
Expand Down
56 changes: 19 additions & 37 deletions docs/dev/notices-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Request:

**API version 1**

*GET /api/v1/collections*
*GET /api/v1/notices*

**API version 2**

*GET /api/v2/collections*
*GET /api/v2/notices*

Parameters:

Expand Down Expand Up @@ -48,23 +48,14 @@ Response:
},
"objects": [
{
"acronym": "scl",
"address": "Rua Machado Bitencourt",
"address_complement": "",
"address_number": "430",
"city": "São Paulo",
"country": "Brasil",
"email": "",
"fax": "",
"id": "1",
"logo": null,
"name": "Brasil",
"name_slug": "brasil",
"phone": "",
"resource_uri": "/api/v1/collections/1/",
"state": "São Paulo",
"url": "http://www.scielo.br",
"zip_code": null
checkin: "/api/v1/checkins/1/",
checkpoint: "validation",
created_at: "2014-07-30T15:09:50.720126",
id: 34,
message: "",
resource_uri: "/api/v2/notices/34/",
stage: "",
status: "SERV_END"
}
]
}
Expand All @@ -75,7 +66,7 @@ Get a single notices

Request::

GET /api/v1/collections/:id/
GET /api/v1/notices/:id/

Parameters:

Expand All @@ -98,21 +89,12 @@ Response:
**API version 1, version 2**::

{
"acronym": "scl",
"address": "Rua Machado Bitencourt",
"address_complement": "",
"address_number": "430",
"city": "São Paulo",
"country": "Brasil",
"email": "",
"fax": "",
"id": "1",
"logo": null,
"name": "Brasil",
"name_slug": "brasil",
"phone": "",
"resource_uri": "/api/v1/collections/1/",
"state": "São Paulo",
"url": "http://www.scielo.br",
"zip_code": null
checkin: "/api/v2/checkins/2/",
checkpoint: "validation",
created_at: "2014-07-30T15:09:50.720126",
id: 34,
message: "",
resource_uri: "/api/v2/notices/34/",
stage: "",
status: "SERV_END"
}

0 comments on commit 79472e2

Please sign in to comment.