RAML · Example Payload

Raml Traits Example

Example showing RAML 1.0 traits for reusable method behaviors

API DesignSpecification LanguageStandardsYAMLRESTAPI Modeling

Raml Traits Example is an example object payload from RAML, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionnoteexample_yamlkey_concepts

Example Payload

raml-traits-example.json Raw ↑
{
  "description": "Example showing RAML 1.0 traits for reusable method behaviors",
  "note": "Traits allow defining cross-cutting concerns like pagination and error responses once and applying them to multiple methods",
  "example_yaml": "#%RAML 1.0\ntitle: Traits Example API\nversion: v1\n\ntraits:\n  pageable:\n    queryParameters:\n      limit:\n        type: integer\n        default: 25\n        minimum: 1\n        maximum: 100\n      offset:\n        type: integer\n        default: 0\n    responses:\n      400:\n        description: Bad pagination parameters\n\n  secured:\n    headers:\n      Authorization:\n        type: string\n        description: Bearer token\n        pattern: \"Bearer .+\"\n    responses:\n      401:\n        description: Unauthorized\n      403:\n        description: Forbidden\n\n/items:\n  get:\n    is: [pageable, secured]\n    description: Get items with pagination and authentication\n    responses:\n      200:\n        description: Paginated item list",
  "key_concepts": {
    "trait_definition": "Defined under the 'traits' root key",
    "trait_application": "Applied to methods using the 'is' keyword as a list",
    "parameterization": "Traits can accept parameters using <<paramName>> syntax",
    "multiple_traits": "A method can apply multiple traits in sequence"
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/raml-traits-example"
All examples
curl "https://apis.io/api/v1/examples?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.