Download the PHP package delboy1978uk/bone-open-api without Composer
On this page you can find all versions of the php package delboy1978uk/bone-open-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download delboy1978uk/bone-open-api
More information about delboy1978uk/bone-open-api
Files in delboy1978uk/bone-open-api
Package bone-open-api
Short Description OpenApi package for Bone Framework
License MIT
Informations about the package bone-open-api
openapi
OpenApi package for Bone Framework
installation
Use Composer
setup
Simply add to the config/packages.php
Create a config array entry/file. You can add a (client_credentials) client so the docs page can authorize and test your endpoints.
Run booty to deploy the front end assets.
If you do not have an npm project yet, you can simply run
which will create a package.json and typespec config file, as well as the spec folder and files for your API
definitions, including definitions from vendor packages.
If you already have a pacakage.json, then your files will be left untouched. You should add the following to your
package.json
Now you can run vendor/bin/bone docs:setup.
vendor package API definitions
Vendor packages can also provide API definitions. These are loaded in to the vendor.tsp files in the spec folder.
These files are autogenerated and ashould not be edited.
To update the vendor definitions, run
compiling open api docs
To create the OpenApi definition file, we compile the docs using the following command (be it npm, pnpm, or yarn)
Now you can head to /api/docs to view your API documentation. 😃 Click on the Authorize button, your client ID and
secret should already be populated, so click Authorize again, and you are ready to start calling your endpoints!
All versions of bone-open-api with dependencies
boneframework/contracts Version ^1.6
delboy1978uk/bone-oauth2 Version ^1.9
laminas/laminas-diactoros Version ^3.3