Skip to content

v0.37.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@bouwe77 bouwe77 released this 06 Sep 12:45
· 19 commits to main since this release
355053e

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.