- Request
-
Headers
User-Agent:curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5 Host:curltraceparser.apiary.io Accept:*/* Content-Type:application/json Content-Length:39
-
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collection API | |
# Group Coupons | |
Group of all coupon-related resources. | |
## Coupon [/coupons/{id}] | |
A resource representing one coupon. | |
+ Coupon Object (application/json) | |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data Document | |
This document contains a description of a data. | |
# Data Structures | |
## Some Data (object) | |
- name: Z (string) - Good old name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "GitHub User: " | |
read USER | |
echo -n "GitHub Password: " | |
read -s PASS | |
echo "" | |
echo -n "GitHub Repo (e.g. foo/bar): " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORMAT: 1A | |
# Gist Fox API | |
Gist Fox API is a **pastes service** similar to [GitHub's Gist](http://gist.github.com). | |
## Authentication | |
*Gist Fox API* uses OAuth Authorization. First you create a new (or acquire existing) OAuth token using Basic Authentication. After you have acquired your token you can use it to access other resources within token' scope. | |
## Media Types | |
Where applicable this API uses the [HAL+JSON](https://github.com/mikekelly/hal_specification/blob/master/hal_specification.md) media-type to represent resources states and affordances. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <vector> | |
#include <regex> | |
enum MarkdownNodeType { | |
RootMarkdownNodeType = 0, | |
HeaderMarkdownNodeType, | |
ListItemMarkdownNodeType, | |
ParagraphMarkdownNodeType, | |
UndefinedMarkdownNodeType = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require 'express' | |
app = express() | |
PORT = 1234 | |
app.get '/machines', (req, res) -> | |
res.setHeader 'Content-Type', 'application/json' | |
machine = | |
type: 'bulldozer' | |
name: 'willy' |