Skip to content

faluapp/falu-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI spec for Falu

The spec files provided in the specs folder (specs/openapi.{yaml,json}) conform to the OpenAPI specification.

Extensions

Falu uses several vendor-specific extensions in these spec files to provide extra information or enhance existing features. In most cases, you do not need to worry about them unless you are generating new or alternative SDKs.

Known extensions:

x-pii

Properties containing x-pii indicate that they carry Personally Identifiable Information (PII) data. These properties are redacted by removal or masking when the /{id}/redact endpoint for the object is invoked.

In the example below, the body property is marked as PII because it may contain sensitive personal information such as passwords or health information.

components:
  ...
  schemas:
    ...
    Message:
      ...
      properties:
        metadata:
        id:
        stream:
        body:
          maxLength: 1600
          type: string
          description: |-
            Actual message content to be sent.
            Required if `template` is not specified.
          nullable: true
          example: Welcome home John!
          x-pii: true

x-error-codes

Operations containing x-error-codes indicate the error codes that can result from its execution.

In the example below, calls made to POST /v1/files can result in 400 (Bad Request) responses with error code file_type_not_allowed or file_invalid.

paths:
  ...
  /v1/files:
    ...
    post:
      ...
      x-error-codes:
        - file_type_not_allowed
        - file_invalid

All possible error codes are documented https://falu.io/docs/error-codes

x-supports-pagination

Operations containing x-supports-pagination: true indicate that pagination is supported. This is set for any operation/endpoint that returns a list of items. These operations will usually have query parameters for filtering depending on the type of object. In addition,

  • ct: a continuation token that is used for the next request.
  • sort: the sorting order (asc|desc|ascending|descending).
  • count: the maximum number of items (must be less than or equal to 100).
  • created.{lt,lte,gt,gte}: filter options for creation date.