Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 1.39 KB

File metadata and controls

55 lines (47 loc) · 1.39 KB

Mollie's OpenAPI Specification

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.

Files

  • specs.yaml: OpenAPI 3.1 spec matching Mollie's Public API.

Extensions

The specification contains a few fields that help us present the information in ways that are difficult in OpenAPI by default.

x-enumDescriptions

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

x-readme

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: ...

Custom Extensions

x-request

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:
        ...