Documentation ¶
Overview ¶
api.go: Queries db, exposes JSON API: 1. GET /monkeys.json: lists all entries 2. POST /monkeys.json: create entity of the type 3. GET /monkeys/[enc id].json retrieves a specific entity 4. PUT /monkeys/[enc id].json updates a specific entity 5. DELETE /monkey/[enc id].json: deletes that entity
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Monkey ¶
type Monkey struct { Id int `json:"id"` Name string `json:"name"` Birthdate time.Time `json:"birthdate"` }
Monkey is an entity we deal with in the API.
Click to show internal directories.
Click to hide internal directories.