This repository contains the OpenAPI specifications for Mollie's API.
Check out the API Reference for the latest, up-to-date documentation of our API.
specs.yaml
: OpenAPI 3.1 spec matching Mollie's Public API.
The specification contains a few fields that help us present the information in ways that are difficult in OpenAPI by default.
It helps us display a table on the documentation page, where descriptions can be added for each of the enum
options.
type: string
enum:
- EUR
- GBP
x-enumDescriptions:
EUR: Euro
GBP: British Pound
It allows us to choose which code snippets are initially shown to users on the documentation page.
x-readme:
code-samples:
- language: shell
code: ...
- language: php
code: ...
- language: node
code: ...
- language: python
code: ...
- language: ruby
code: ...
This field allows us to specify a particular request and link it to a response. It's helpful when creating a new example for the Postman Collections.
responses:
...
examples:
create-payment-example:
summary: ...
x-request: requests.yaml#/create-payment-example
value:
...