Sha256: 8f35736142daba36638571f8fdde5bc0ec319dc4050afd93225ab86cb1061c50

Contents?: true

Size: 1.26 KB

Versions: 42

Compression:

Stored size: 1.26 KB

Contents

#%RAML 0.8
---
title: e-BookMobile API
baseUri: http://api.e-bookmobile.com/{version}
version: v1

/authors:
  post:
    description: Retrieve a list of authors
    body:
      application/json:
        schema: |
          {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "schema to create an author",
            "type": "object",
            "required": [ "first_name", "last_name" ],
            "properties": {
              "first_name": { "type": "string" },
              "last_name": { "type": "string" },
              "year_of_birth": { "type": "integer" }
            }
          }
    responses:
      200:
        body:
          application/json:
            schema: |
              {
                "$schema": "http://json-schema.org/draft-04/schema#",
                "description": "schema for a list of authors",
                "type": "object",
                "properties": {
                  "author": {
                    "type": "object",
                    "properties": {
                      "id": { "type": "integer" },
                      "first_name": { "type": "string" },
                      "last_name": { "type": "string" }
                    }
                  }
                }
              }

Version data entries

42 entries across 14 versions & 1 rubygems

Version Path
rambo_ruby-0.1.0 features/support/examples/raml/basic_raml_with_post_route.raml
rambo_ruby-0.1.0 spec/support/foo.raml