# GET /message
+ Response 200 (text/plain)
Hello World!
API Blueprint is lightweight, documentation oriented domain specific language (DSL) for easily designing, building and documenting REST API. API Blueprint is a Markdown. It is easy to learn and read, perfect for comprehensive documentation but also for quick prototyping and collaboration.
- Web API documentation language
- Pure Markdown
- Designed for humans
- Understandable by machines
Prototype, design and document your API using Markdown formatting of your liking.
# My API
My API rocks!
## GET /message
- response 200 (application/json)
{ "message": 'Hello World!' }
My API
======
My API rocks!
GET /message
-------------
+ Response 200 (application/json)
{
"message": 'Hello World!'
}
Parse your API Blueprint and integrate with your tools & frameworks.
$ snowcrash parse --json my_api.md
{
"metadata": [],
"name": "My API",
"description": "My API rocks! \n\n",
"resourceGroups": [
{
"name": "",
"description": "",
"resources": [
{
"uriTemplate": "/message",
"name": "",
"description": "",
"headers": [],
"object": {
"name": "",
"description": "",
"headers": [],
"body": "",
"schema": ""
},
"methods": [
{
"method": "GET",
"name": "",
"description": "",
"headers": [],
"requests": [],
"responses": [
{
"name": "200",
"description": "",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"body": "{ \"message\": 'Hello World!' } \n",
"schema": ""
}
]
}
]
}
]
}
]
}
$ snowcrash parse --yaml my_api.md
name: My API
description: "My API rocks! \n\n"
resourceGroups:
- name:
description:
resources:
- uri: /message
name:
description:
object:
methods:
- method: GET
name:
description:
responses:
- name: 200
description:
body: "{ "message": 'Hello World!' }\n"
schema:
headers:
- Content-Type: application/json
- Node.js: Protagonist
- Ruby: not yet, call for contributors
- Java: not yet, call for contributors
- PHP: not yet, call contributors
Start with API Blueprint Tutorial or just browse all available examples.
$ brew install snowcrash
$ snowcrash --help
$ git clone https://github.com/apiaryio/snowcrash
$ cd snowcrash
$ ./configure
$ make
$ make install
Ask at Stack Overflow, make sure to use apiblueprint
tag.
Alternativelly, if you are contributor, check API Blueprint Developers Google Group.
- Actual version: Format 1A
MIT License. See LICENSE file.