From e0b7a08cf334a7e0ca2564bc667c2c5754615cb8 Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Thu, 22 Aug 2013 12:03:50 -0400 Subject: [PATCH] adding apiary.apib --- apiary.apib | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 apiary.apib diff --git a/apiary.apib b/apiary.apib new file mode 100644 index 000000000..bad782baf --- /dev/null +++ b/apiary.apib @@ -0,0 +1,44 @@ +HOST: http://www.google.com/ + +--- ProcessMaker "Michael Angelo" API v1 --- +--- + Welcome to ProcessMaker API documentation. + All comments can be written in (support [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax) + + ***(This API is under development yet, please wait for a final v1 release) *** +--- + +-- +Designer API +The following is a section of resources related to ProcessMaker Designer +-- +Sample first resource +GET /designer/editor +< 200 +< Content-Type: application/json +{ "items": [ +{ "url": "/designer/teditopr", "product":"2ZY48XPZ", "quantity": 1, "name": "New socks", "price": 1.25 } +] } + + +Save new products in your shopping cart +POST /sample +> Content-Type: application/json +{ "product":"1AB23ORM", "quantity": 2 } +< 201 +< Content-Type: application/json +{ "status": "created", "url": "/sample/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" } + + + + + +