v0.37.0
Pre-release
Pre-release
New feature
Fixes #85
Next to configuring resources
as strings, you can now also configure them as extended objects, so you can provide extra info for better OpenAPI spec generation:
const config = {
resources: [
"movies",
{
"resourcePath": "people",
"singularName": "person",
"pluralName": "people",
}
]
}
With this config, your Temba API supports both the movies and people resources, and requesting any other resource will return a 404 Not Found
.