Sha256: 5c50d4678f2d0e413b92529305912ca891a27ec5f7248e40a0f87374def39a25
Contents?: true
Size: 1.44 KB
Versions: 4
Compression:
Stored size: 1.44 KB
Contents
HOST: http://www.google.com/ --- test API --- --- 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/{id} < 200 < Content-Type: application/json { "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/{id2} > Content-Type: application/json > CCC: aaa { "product":"1AB23ORM", "quantity": 2 } < 201 < Content-Type: application/json < CCC: aaa { "status": "created", "url": "/shopping-cart/2" } -- 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" } -- JSON Schema Validations -- POST /shopping-cart/{id2} {"request": { "type": "object", "properties": { "product": { "type": "string","format": "alphanumeric" }, "quantity": { "type": "integer" } } } , "response": { "type": "object", "properties": { "product": { "type": "string","format": "alphanumeric" }, "status": { "type": "integer" } } } }
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
honey-0.0.6 | lib/okapi/examples/apiary.apib |
apiaryio-0.0.5 | lib/okapi/examples/apiary.apib |
apiaryio-0.0.4 | lib/okapi/examples/apiary.apib |
apiaryio-0.0.3 | lib/okapi/examples/apiary.apib |