Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Transferring blueprint from apiary.io
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubMrozek committed Nov 14, 2012
1 parent dcf725d commit 323aee6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apiary.apib
Expand Up @@ -7,8 +7,9 @@ Demo e-shop pro Zdrojak.cz (http://jakubmrozek.github.com/Zdrojak/)
--
Stranky
--
Vrácení seznamu všech stránek.


Vrácení seznamu všech stránek.
GET /pages
< 200
< Content-Type: application/json
Expand All @@ -27,8 +28,8 @@ GET /pages
"url":"doprava a platba"}
]

Zobrazení detailu jedné stránky.

Zobrazení detailu jedné stránky.
GET /pages/{id}
< 200
< Content-Type: application/json
Expand All @@ -39,7 +40,6 @@ GET /pages/{id}


Vložení nové stránky do databáze.

POST /pages
> Content-Type: application/json
{"content":"Lorem ipsum set dolorem", "title":"Nákupní řád"}
Expand All @@ -48,7 +48,6 @@ POST /pages

Editace jedné stránky v databázi.

PUT /pages/{id}
> Content-Type: application/json
{"content":"Lorem ipsum set dolorem",
Expand All @@ -60,7 +59,6 @@ PUT /pages/{id}

Smazání stránky z databáze.

DELETE /pages/{id}
< 204

Expand Down

0 comments on commit 323aee6

Please sign in to comment.