MagicBell's OpenAPI Specification
This repository contains OpenAPI specifications for the MagicBell REST API.
Files can be found in the /spec directory:
openapi.json:
OpenAPI 3.0 spec matching the public MagicBell API.postman.json
Postman 2.1.0 spec matching the public MagicBell API.
Vendor Extensions
The specification ships with a few vendor-specific fields to help represent information in ways that are difficult or unsupported in OpenAPI by default.
x-beta
MethodObjects
can contain an x-beta: true
property to indicate that the method is in beta or for other reasons unreleased. While you may be able to query them, they are unsupported and might be changed or even removed without notice.
{
"paths": {
"/easter-eggs": {
"get": {
"x-beta": true
}
}
}
}
Postman
You'll find out postman collection at /spec/postman.json. To use it, import it in postman by clicking import
in postman, and then dragging our json file onto that dialog.
Development
Run the test suite:
# clone the repo
git clone [email protected]:magicbell-io/openapi.git
cd openapi
# install dependencies
yarn
# validate the current spec
yarn validate
Code Quality
We're using pre-commit hooks to maintain consistency in code style for scripts in /scripts, and to verify that the openapi spec is valid according to openapi schemas. Please keep them enabled.