Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 760 Bytes

extensions.md

File metadata and controls

27 lines (18 loc) · 760 Bytes

OpenAPI Extensions

This document describes the OpenAPI extensions used in Pinterest's REST API OpenAPI descriptions.

x-ratelimit-category

Purpose

Defines a functional category used for rate limiting.

Usage

x-ratelimit-category should be applied to each operation. Operations that share a rate limit category will share rate limit quota.

The value should be a string.

Example usage

  /user_account:
    get:
      summary: Get user account
      tags:
      - user_account
      operationId: user_account/get
      x-ratelimit-category: basic_org_read