Live demo here
Override the default settings by defining them in config/local.js
listen:{host: '127.0.0.1', port: 1111}namebase_urls: Array of URLs or a stringauthendpoints: list of{name: …, prefix: …, methods: {'<VERB> URI': <Method>, …}}withVERBbeing anHTTPverb (GET,POST, …) andURIan API endpoint. Ex:GET /users/{name}custom_types:{id: <Custom type>, …}:idcan be anything at all as long as it does not contain any '('
Object with the following attributes:
descriptionauth_requiredparameters: object of the form{<NAME>: <Parameter>, …}reponses: object{<CODE>: <Object>, …}where<CODE>matches[0-9x]{3}
Object with the following attributes:
descriptionrequired(defaultfalse, will be changed totrueif the parameter is in theURI)type: an<Object>testing_value: the value used when generating thecheck.{html,json}pagesdefault: the value the API will default to if the parameter isn't supplied
One of the following:
int,float,stringorbool"value1|value2|…"<custom type id>{key: <Object>, …}[<Object>],[<Object>, size_max]or[<Object>, size_max, size_min](optional) <Object><Object> (description)
Object with the following attributes:
nameinline: whether this custom type should be described in the "Custom type section" of the doc or itsnameshould be copied everywhere it's mentionned along with itstypetype:<Object>(if notypekey is present then we fall back on the value of theinlinekey)