Repository URL to install this package:
|
Version:
2.0.0-betamgk ▾
|
aglio
/
example.md
|
|---|
FORMAT: 1A HOST: https://api.example.com
Markdown formatted description.
Also Markdown formatted. This also includes automatic "smartypants" formatting -- hooray!
"A quote from another time and place"
Another paragraph. Code sample:
Authorization: bearer 5262d64b892e8d4341000001
And some code with no highlighting:
Foo bar baz
Group description (also with Markdown)
Note list description
Even
More
Markdown
Model
Headers
Content-Type: application/json
X-Request-ID: f72fc914
X-Response-Time: 4ms
Body
[
{
"id": 1,
"title": "Grocery list",
"body": "Buy milk"
},
{
"id": 2,
"title": "TODO",
"body": "Fix garage door"
}
]
Get a list of notes.
Response 200
[Note List][]
Create a new note
Request
Headers
Content-Type: application/json
Body
{
"title": "My new note",
"body": "..."
}
Response 201
Response 400
Headers
Content-Type: application/json
Body
{
"error": "Invalid title"
}
Note description
Parameters
68a5sdf67 (required, string) - The note IDModel
Headers
Content-Type: application/json
X-Request-ID: f72fc914
X-Response-Time: 4ms
Body
{
"id": 1,
"title": "Grocery list",
"body": "Buy milk"
}
Get a single note.
Response 200
[Note][]
Response 404
Headers
Content-Type: application/json
X-Request-ID: f72fc914
X-Response-Time: 4ms
Body
{
"error": "Note not found"
}
Update a single note
Request
Headers
Content-Type: application/json
Body
{
"title": "Grocery List (Safeway)"
}
Response 200
[Note][]
Response 404
Headers
Content-Type: application/json
X-Request-ID: f72fc914
X-Response-Time: 4ms
Body
{
"error": "Note not found"
}
Delete a single note
Response 204
Response 404
Headers
Content-Type: application/json
X-Request-ID: f72fc914
X-Response-Time: 4ms
Body
{
"error": "Note not found"
}
Group description
A list of users
Parameters
alice (string, optional) - Search for a user by name2011-01-01 (string, optional) - Search by join date2011-01-01 (string, optional, ) - Search by join datejoined (string, optional) - Which field to sort by
namenamejoined-joinedage-agelocation-locationplan-plan25 (integer, optional) - The maximum number of users to return, up to 50
10Model
Headers
Content-Type: application/json
Body
[
{
"name": "alice",
"image": "http://example.com/alice.jpg",
"joined": "2013-11-01"
},
{
"name": "bob",
"image": "http://example.com/bob.jpg",
"joined": "2013-11-02"
}
]
Schema
<!-- include(example-schema.json) -->
Get a list of users. Example:
https://api.example.com/users?sort=joined&limit=5
Response 200
[User List][]
Get or set tags on notes
Get a list of bars
Get a single tag