praekelt/go-nike-ghr — pull request #20 by imsickofmaps (2013-07-08 15:23:51+00:00)
Title: Directory initial creation and json api

## Basics

* Category name (up to 60 characters)
* Link to sub-category, one to many
* Sub-categories have a name (up to 60 characters) and 1-3 parts description
* The three parts are up to 125 characters in length

## API

There needs to be only one endpoint

**GET /api/directory/**

{
"directory": {
"category one": {
"sub category one": {
"description_1": "first part of contact details",
"description_2": "second part of contact details",
"description_3": "third part of contact details"
},
"sub category two": {
"description_1": "first part of contact details",
"description_2": "second part of contact details",
"description_3": "third part of contact details"
}
},
"category two": {
"sub category one": {
"description_1": "first part of contact details",
"description_2": "second part of contact details",
"description_3": "third part of contact details"
},
"sub category two": {
"description_1": "first part of contact details",
"description_2": "second part of contact details with none extra"
}
}
}
}