fusionauth-issues
fusionauth-issues copied to clipboard
Support FusionAuth CLI with Restish
Support FusionAuth CLI with Restish
Problem
Restish is a CLI for interacting with REST APIs. It provides API configuration and profiles for different use cases along with streamlined data entry and tab-completion. Restish builds an API based on an OpenAPI or JSON Schema spec file.
The Restish tool does not currently work with the FusionAuth APIs. Any call made using the saved configuration results in a stack overflow error.
Solution
- Review the FusionAuth OpenAPI spec to ensure there are no errors
- Make the spec discoverable
- Link relation header at API base URI
- Make spec available at
/api/openapi.yaml
- Resolve the stack overflow issue
The stack overflow issue seems most likely to be due to circular references in the API schema. This will likely require working with the Restish maintainer or making our own fix to the library.
Alternatives/workarounds
The Restish tool works with FusionAuth APIs, but it cannot use the saved configuration/schema. It still has some benefits like output filtering, enhanced data entry, and a more readable output.
Additional context
There was an update on the Restish repo in April 2022 to handle recursive schema references.