Raml Basic Api Example
Example of a simple RAML 1.0 API definition (represented as annotated JSON for reference)
Raml Basic Api 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
Example Payload
{
"description": "Example of a simple RAML 1.0 API definition (represented as annotated JSON for reference)",
"note": "RAML documents are actually written in YAML starting with #%RAML 1.0",
"example_yaml": "#%RAML 1.0\ntitle: Hello World API\nversion: v1\nbaseUri: https://api.example.com/{version}\nmediaType: application/json\n\ntypes:\n User:\n type: object\n properties:\n id:\n type: integer\n description: Unique user identifier\n name:\n type: string\n description: User's full name\n email:\n type: string\n description: User's email address\n\n/users:\n description: Collection of users\n get:\n description: Get all users\n queryParameters:\n limit:\n type: integer\n default: 25\n description: Maximum number of users to return\n responses:\n 200:\n body:\n application/json:\n type: User[]\n post:\n description: Create a new user\n body:\n application/json:\n type: User\n responses:\n 201:\n body:\n application/json:\n type: User\n\n/users/{userId}:\n uriParameters:\n userId:\n type: integer\n description: User ID\n get:\n description: Get a specific user\n responses:\n 200:\n body:\n application/json:\n type: User\n 404:\n description: User not found",
"parsed_representation": {
"title": "Hello World API",
"version": "v1",
"baseUri": "https://api.example.com/v1",
"mediaType": "application/json",
"types": {
"User": {
"type": "object",
"properties": {
"id": { "type": "integer", "description": "Unique user identifier" },
"name": { "type": "string", "description": "User's full name" },
"email": { "type": "string", "description": "User's email address" }
}
}
},
"resources": [
{
"relativeUri": "/users",
"description": "Collection of users",
"methods": [
{
"method": "get",
"description": "Get all users",
"queryParameters": {
"limit": { "type": "integer", "default": 25 }
},
"responses": {
"200": { "body": { "application/json": { "type": "User[]" } } }
}
},
{
"method": "post",
"description": "Create a new user",
"body": { "application/json": { "type": "User" } },
"responses": {
"201": { "body": { "application/json": { "type": "User" } } }
}
}
]
}
]
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/examples/raml-basic-api-example"
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.