Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Transferring blueprint from apiary.io

  • Loading branch information...
commit 3e2f2d79deec5a904e32d8151fc041bdec717495 1 parent a3d021b
@Almad authored
Showing with 25 additions and 23 deletions.
  1. +25 −23 apiary.apib
View
48 apiary.apib
@@ -1,30 +1,32 @@
-HOST: http://www.google.com/
-
---- Ur Testorz ---
-
-Crate *user*
-POST /user/{id}
-< 201
-< Content-Type: application/json
-{
- "id": 2262625
-}
-
-GET /user/{id}
-> Accept: application/json
+--- aaaaaaaaaaaaa ---
+---
+Welcome to the our sample API documentation. All comments can be written in (support [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax)
+---
+--
+Shopping Cart Resources
+The following is a section of resources related to the shopping cart
+--
+List products added into your shopping-cart. (comment block again in Markdown)
+GET /shopping-cart
< 200
< Content-Type: application/json
-{
- "id": 2262625
-}
-
-GET /test
-< 200
-
+{ "items": [
+ { "url": "/shopping-cart/1", "product":"2ZY48XPZ", "quantity": 1, "name": "New socks", "price": 1.25 }
+] }
+Save new products in your shopping cart
+POST /shopping-cart
+> Content-Type: application/json
+{ "product":"1AB23ORM", "quantity": 2 }
+< 201
+< Content-Type: application/json
+{ "status": "created", "url": "/shopping-cart/2" }
-GET /test
+-- Payment Resources --
+This resource allows you to submit payment information to process your *shopping cart* items
+POST /payment
+{ "cc": "12345678900", "cvc": "123", "expiry": "0112" }
< 200
-
+{ "receipt": "/payment/receipt/1" }
Please sign in to comment.
Something went wrong with that request. Please try again.