{
    "basePath": "http://api.basetax.co.uk/v4",
    "swaggerVersion": "1.2",
    "apiVersion": "1.0.0",
    "resourcePath": "/self-employments",
    "apis": [
        {
            "path": "/self-employments",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get all self-employments",
                    "nickname": "self-employments",
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                },
                {
                    "method": "POST",
                    "summary": "Create a selfEmployed",
                    "nickname": "selfEmployed",
                    "parameters": [
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "FullSelfEmployment",
                            "required": true,
                            "description": "Json Object"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                }
            ]
        },
        {
            "path": "/self-employments/{id}",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get one Self-Employment",
                    "nickname": "Get one Self-Employment",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "id",
                            "type": "string",
                            "required": true,
                            "allowMultiple": false,
                            "description": "Id"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                },
                {
                    "method": "PUT",
                    "summary": "Update a Self-employment",
                    "nickname": "Update a Self-employment",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "id",
                            "type": "string",
                            "required": true,
                            "description": "Id"
                        },
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "FullSelfEmployment",
                            "required": true,
                            "description": "Json Object"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                },
                {
                    "method": "DELETE",
                    "summary": "Delete a selfEmployed",
                    "nickname": "selfEmployed",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "id",
                            "type": "string",
                            "required": true,
                            "description": "Id"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                }
            ]
        }
    ],
    "models": {
        "FullSelfEmployment": {
            "id": "FullSelfEmployment",
            "required": [
                "tax_return_id",
                "tax_year_id",
                "user_id"
            ],
            "properties": {
                "user_id": {
                    "description": "User id",
                    "type": "integer",
                    "defaultValue": 4
                },
                "tax_year_id": {
                    "description": "Tax year id",
                    "type": "integer",
                    "defaultValue": 5
                },
                "tax_return_id": {
                    "description": "Tax return id",
                    "type": "integer",
                    "defaultValue": 24004
                },
                "FSE1": {
                    "type": "string",
                    "defaultValue": "Your business name"
                },
                "FSE2": {
                    "type": "string",
                    "defaultValue": "Your business description"
                },
                "FSE3": {
                    "type": "string",
                    "defaultValue": "Your address"
                },
                "FSE4": {
                    "type": "string",
                    "defaultValue": "UK Postcode only"
                },
                "FSE5": {
                    "type": "boolean"
                },
                "FSE6": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-26-06"
                },
                "FSE7": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-26-06"
                },
                "FSE8": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-26-06"
                },
                "FSE9": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-26-06"
                },
                "FSE10": {
                    "type": "boolean"
                },
                "FSE11": {
                    "type": "boolean"
                },
                "FSE12": {
                    "type": "boolean"
                },
                "FSE13": {
                    "type": "boolean"
                },
                "FSE14": {
                    "type": "boolean"
                },
                "FSE15": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE16": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE17": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE18": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE19": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE20": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE21": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE22": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE23": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE24": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE25": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE26": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE27": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE28": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE29": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE30": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE31": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE32": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE33": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE34": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE35": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE36": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE37": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE38": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE39": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE40": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE41": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE42": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE43": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE44": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE45": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE46": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE47": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE48": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE49": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE50": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE51": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE52": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE54": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE55": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE56": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE57": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE58": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE59": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE60": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE61": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE62": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE63": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE64": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE65": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE66": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-30-07"
                },
                "FSE67": {
                    "type": "string",
                    "format": "date",
                    "defaultValue": "2016-31-07"
                },
                "FSE68": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE69": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE70": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE71": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE72": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE73": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE74": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE75": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE76": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE77": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE78": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE79": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE80": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE81": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE82": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE83": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE84": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE85": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE86": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE87": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE88": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE89": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE90": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE91": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE92": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE93": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE94": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE95": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE96": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE97": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE98": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE99": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE100": {
                    "type": "boolean"
                },
                "FSE101": {
                    "type": "boolean"
                },
                "FSE102": {
                    "type": "float",
                    "defaultValue": 98.06
                },
                "FSE103": {
                    "type": "string",
                    "defaultValue": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
                }
            }
        }
    },
    "produces": [
        "application/json"
    ]
}