A complete set of Mattermost Open API route specifications that can be imported straight into Insomnia REST Client.
This script directly downloads mattermost-openapi-v4.yaml and then generate Insomnia-compatible resources out of it.
$ npm install
$ npm run build
Import directly into Insomnia, via Workspace
➡️ Import/Export
➡️ Import Data
➡️ From URL
and entering https://raw.githubusercontent.com/saturninoabril/mattermost-openapi-insomnia/master/dist/mattermost_openapi_v4_insomnia.json
:
Modify base environment:
mattermost_token
: Add your personal access or session token to authorize access to routes. See documention on how to create personal access token.mattermost_api_root
: Set by default tohttp://localhost:8065/api/v4
but can also change to remotely access your Mattermost instance.- modify other parameters/environment variable as needed.