{
  "swagger": "2.0",
  "info": {
    "title": "Resource and Actions API",
    "version": "",
    "description": "This API example demonstrates how to define a resource with multiple actions.\n\n## API Blueprint\n\n+ [Previous: The Simplest API](01.%20Simplest%20API.md)\n\n+ [This: Raw API Blueprint](https://raw.github.com/apiaryio/api-blueprint/master/examples/02.%20Resource%20and%20Actions.md)\n\n+ [Next: Named Resource and Actions](03.%20Named%20Resource%20and%20Actions.md)"
  },
  "paths": {
    "/message": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "examples": {
              "text/plain": "Hello World!\n"
            }
          }
        },
        "summary": "",
        "description": "Here we define an action using the `GET` [HTTP request method](http://www.w3schools.com/tags/ref_httpmethods.asp) for our resource `/message`.\n\nAs with every good action it should return a [response](http://www.w3.org/TR/di-gloss/#def-http-response). A response always bears a status code. Code 200 is great as it means all is green. Responding with some data can be a great idea as well so let's add a plain text message to our response.",
        "tags": [],
        "parameters": [],
        "produces": [
          "text/plain"
        ]
      },
      "put": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {},
            "examples": {}
          }
        },
        "summary": "",
        "description": "OK, let's add another action. This time to put new data to our resource (essentially an update action). We will need to send something in a [request](http://www.w3.org/TR/di-gloss/#def-http-request) and then send a response back confirming the posting was a success (HTTP Status Code 204 ~ Resource updated successfully, no content is returned).",
        "tags": [],
        "parameters": []
      }
    }
  },
  "definitions": {},
  "securityDefinitions": {},
  "tags": []
}