Format: 1A Host: http://blog.acme.com
NOTE: This document is outdated. Refer to the actual API Blueprint examples.
Welcome to the ACME Blog API. This API provides access to the ACME Blog service.
NOTE: This document is outdated. Refer to the actual API Blueprint examples.
Welcome to the ACME Blog API. This API provides access to the ACME Blog service.
| # POST /path/to/script.php | |
| + Request (multipart/form-data, boundary=AaB03x) | |
| + Headers | |
| Content-Length: $requestlen | |
| + Body | |
| # Collection API | |
| # Group Coupons | |
| Group of all coupon-related resources. | |
| ## Coupon [/coupons/{id}] | |
| A resource representing one coupon. | |
| + Coupon Object (application/json) | |
| $ sudo apt-get install python-software-properties | |
| $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| $ sudo apt-get update | |
| $ sudo apt-get install gcc-4.7 g++-4.7 | |
| $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 | |
| $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 | |
| $ sudo update-alternatives --config gcc |
| $ sudo apt-get install libfontconfig | |
| $ cd /usr/local/share | |
| $ sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| $ sudo tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
| $ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs | |
| $ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
| $ sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs |
| { | |
| "_version": "1.0", | |
| "metadata": {}, | |
| "name": "", | |
| "description": "", | |
| "resourceGroups": [ | |
| { | |
| "name": "", | |
| "description": "", | |
| "resources": [ |
FORMAT: 1A
Answer to "How to format a POST request on apiary.io". Make sure to refer to "application/x-www-form-urlencoded or multipart/form-data".
Do not forget to escape [ with %5B and ] with %5D in data[User][username]=qq&data[User][password]=qq&data[User][remember]=0.
| if application "Google Chrome" is running then | |
| tell application "Google Chrome" to make new window with properties {mode:"incognito"} | |
| else | |
| do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito" | |
| end if | |
| tell application "Google Chrome" to activate |