Skip to content

Commit 15f0563

Browse files
committed
Transferring blueprint from apiary.io
1 parent a4aff84 commit 15f0563

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

apiary.apib

+2-34
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
HOST: http://www.google.com/
1+
HOST: http://rnv.the-agent-factory.de:8080/easygo2/rest/regions/rnv/modules/
22

3-
--- Sample API v2 ---
4-
---
5-
Welcome to the our sample API documentation. All comments can be written in (support [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax)
6-
---
7-
8-
--
9-
Shopping Cart Resources
10-
The following is a section of resources related to the shopping cart
11-
--
12-
List products added into your shopping-cart. (comment block again in Markdown)
13-
GET /shopping-cart
14-
< 200
15-
< Content-Type: application/json
16-
{ "items": [
17-
{ "url": "/shopping-cart/1", "product":"2ZY48XPZ", "quantity": 1, "name": "New socks", "price": 1.25 }
18-
] }
19-
20-
21-
Save new products in your shopping cart
22-
POST /shopping-cart
23-
> Content-Type: application/json
24-
{ "product":"1AB23ORM", "quantity": 2 }
25-
< 201
26-
< Content-Type: application/json
27-
{ "status": "created", "url": "/shopping-cart/2" }
28-
29-
30-
-- Payment Resources --
31-
This resource allows you to submit payment information to process your *shopping cart* items
32-
POST /payment
33-
{ "cc": "12345678900", "cvc": "123", "expiry": "0112" }
34-
< 200
35-
{ "receipt": "/payment/receipt/1" }
3+
--- RNV API ---

0 commit comments

Comments
 (0)