feathers-oas v0.0.2
feathers-oas
This library is a cli to repeatedly generate OpenAPI Specifications from Feathers Services and custom methods.
Setting Up
This tool assumes that you are using feathers_v5 and that your services live in the standard src/services folder, like the feathers cli generator produces. Modifications can be made via a configuration object in package.json or a .feathers-oas.json file in the root of your project.
In the example folder, you find multiple feathers projects with the code already in place.
Installation
Once your feathers app and core services are installed, you can run
npx foas generateYou will see that the script outputs the names of each of your services. If you inspect your src/services folder, you'll find that {name}.spec.yml files have been generated for each service in their respective folders.
You will also see a new folder called specifications at root. This is where the final merged OpenAPI specifications will live.
If you open one of the {name}.spec.yml files, you'll see that some basic feathers defaults have been setup for you, based on the methods
npm install --save feathers-oasContributing
Please see https://github.com/jamesvillarrubia/feathers-oas/blob/main/.github/contributing.md