{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "REST Web Services Schema",
    "description": "Definition of REST web services.",
    "definitions": {
        "method": {
            "type": "string",
            "title": "HTTP Method",
            "description": "HTTP method.",
            "enum": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ],
            "default": "GET"
        },
        "request": {
            "type": "object",
            "title": "Request Payload",
            "description": "Definition of the parameters for the request."
        },
        "response": {
            "type": "object",
            "title": "Response Payload",
            "description": "Definition of the parameters for the response."
        },
        "service": {
            "type": "object",
            "title": "REST Web Service",
            "description": "Definition of the service.",
            "required": [
                "method",
                "request",
                "response"
            ],
            "properties": {
                "method": {
                    "$ref": "#/definitions/method"
                },
                "request": {
                    "$ref": "#/definitions/request"
                },
                "response": {
                    "$ref": "#/definitions/response"
                }
            }
        }
    },
    "properties": {}
}