[x] map route path to route info for readability (the info is nested)
Good:
---
description: "A simple highscore API."
routes:
update:
description: "Updates the highscore entries with the given entry."
model:
score: "java.lang.Integer"
player: "java.lang.String"
roles:
- "PUBLIC"
list:
description: "Returns a list of the current highscore selection."
roles:
- "PUBLIC"
Bad:
{
"model" : { },
"text" : "A simple highscore API.",
"routes" : [ {
"model" : {
"score" : "java.lang.Integer",
"player" : "java.lang.String"
},
"description" : "Updates the highscore entries with the given entry.",
"role" : [ "PUBLIC" ],
"name" : "update"
}, {
"model" : { },
"description" : "Returns a list of the current highscore selection.",
"role" : [ "PUBLIC" ],
"name" : "list"
} ],
"status" : "ACCEPTED",
"target" : "api",
"route" : "documentation"
}
Good:
Bad: