#%RAML 1.0
title: XKCD
baseUri: http://xkcd.com
types:
  comic: !include schemas/comic-schema.json
/{comicId}/info.0.json:
  uriParameters:
    comicId:
      type: number
  get:
    description: |
      Fetch comics and metadata  by comic id.
    responses:
      200:
        body:
          application/json:
            schema: comic
            example: !include examples/comic-example.json
/info.0.json:
  get:
    description: |
      Fetch current comic and metadata.
    responses:
      200:
        body:
          application/json:
            schema: comic
            example: !include examples/comic-example.json
documentation:
  - title: Headline
    content: !include docs/headline.md
