Efí Pay (Gerencianet) · API Governance Rules

Efí Pay (Gerencianet) API Rules

Spectral linting rules defining API design standards and conventions for Efí Pay (Gerencianet).

6 Rules error 2 warn 3 info 1
View Rules File View on GitHub

Rule Categories

efi

Rules

error
efi-info-contact
Every Efí Pay API must list dev.efipay.com.br as the contact URL.
$.info.contact
warn
efi-server-base-url
Production and homologation servers must use the *.api.efipay.com.br base.
$.servers[*].url
error
efi-oauth-required
Every Efí Pay API uses OAuth2 client_credentials.
$.components.securitySchemes
warn
efi-operation-id-camel
operationId must be camelCase matching the Node SDK constants.
$.paths[*][get,post,put,patch,delete].operationId
warn
efi-summary-title-case
Operation summaries should use Title Case.
$.paths[*][get,post,put,patch,delete].summary
info
efi-pix-mtls
Pix and Open Finance descriptions must mention mTLS.
$.info.description

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  efi-info-contact:
    description: Every Efí Pay API must list dev.efipay.com.br as the contact URL.
    given: $.info.contact
    severity: error
    then:
      field: url
      function: pattern
      functionOptions:
        match: "^https://dev\\.efipay\\.com\\.br"
  efi-server-base-url:
    description: Production and homologation servers must use the *.api.efipay.com.br base.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^https://[a-z-]+(-h)?\\.api\\.efipay\\.com\\.br"
  efi-oauth-required:
    description: Every Efí Pay API uses OAuth2 client_credentials.
    given: $.components.securitySchemes
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          additionalProperties:
            type: object
            properties:
              type: { const: oauth2 }
              flows:
                type: object
                required: [clientCredentials]
  efi-operation-id-camel:
    description: operationId must be camelCase matching the Node SDK constants.
    given: $.paths[*][get,post,put,patch,delete].operationId
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"
  efi-summary-title-case:
    description: Operation summaries should use Title Case.
    given: $.paths[*][get,post,put,patch,delete].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][A-Za-z0-9 /(){}-]+$"
  efi-pix-mtls:
    description: Pix and Open Finance descriptions must mention mTLS.
    given: $.info.description
    severity: info
    then:
      function: pattern
      functionOptions:
        match: "(mTLS|mutual TLS|mutual-TLS|P12|PEM|certificate)"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/efi-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.