{
    "basePath": "http://api.basetax.co.uk/v4",
    "swaggerVersion": "1.2",
    "apiVersion": "1.0.0",
    "resourcePath": "/foreign-incomes",
    "apis": [
        {
            "path": "/foreign-incomes",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get all foreignIncome",
                    "nickname": "foreignIncome",
                    "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 foreignIncome",
                    "nickname": "foreignIncome",
                    "parameters": [
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "ForeignIncome",
                            "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": "/foreign-incomes/{id}",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get one foreignIncome",
                    "nickname": "foreignIncome",
                    "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"
                        }
                    ]
                },
                {
                    "method": "PUT",
                    "summary": "Update a Foreign Income",
                    "nickname": "foreignIncome",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "id",
                            "type": "string",
                            "required": true,
                            "description": "Id"
                        },
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "ForeignIncome",
                            "required": true,
                            "description": "Json body"
                        }
                    ],
                    "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 foreignIncome",
                    "nickname": "foreignIncome",
                    "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": {
        "ForeignIncome": {
            "id": "ForeignIncome",
            "required": [
                "FOR1",
                "FOR10",
                "FOR11",
                "FOR11A",
                "FOR11B",
                "FOR11C",
                "FOR11D",
                "FOR11E",
                "FOR11F",
                "FOR12",
                "FOR13",
                "FOR13A",
                "FOR13B",
                "FOR13C",
                "FOR13D",
                "FOR13E",
                "FOR13F",
                "FOR14",
                "FOR15",
                "FOR16",
                "FOR17",
                "FOR18",
                "FOR19",
                "FOR2",
                "FOR20",
                "FOR21",
                "FOR22",
                "FOR23",
                "FOR24",
                "FOR25",
                "FOR26",
                "FOR27",
                "FOR28",
                "FOR29",
                "FOR3",
                "FOR30",
                "FOR30A",
                "FOR30B",
                "FOR30C",
                "FOR30D",
                "FOR30E",
                "FOR30F",
                "FOR31",
                "FOR32",
                "FOR33",
                "FOR34",
                "FOR35",
                "FOR36",
                "FOR37",
                "FOR38",
                "FOR39",
                "FOR4",
                "FOR40",
                "FOR41",
                "FOR42",
                "FOR43",
                "FOR44",
                "FOR45",
                "FOR46",
                "FOR4A",
                "FOR4B",
                "FOR4C",
                "FOR4D",
                "FOR4E",
                "FOR4F",
                "FOR5",
                "FOR6",
                "FOR6A",
                "FOR6B",
                "FOR6C",
                "FOR6D",
                "FOR6E",
                "FOR6F",
                "FOR7",
                "FOR8",
                "FOR9",
                "FOR9A",
                "FOR9B",
                "FOR9C",
                "FOR9D",
                "FOR9E",
                "FOR9F",
                "FORA",
                "FORB",
                "FORC",
                "FORD",
                "FORE",
                "FORF"
            ],
            "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
                },
                "FOR1": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR2": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR3": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR4F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR5": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR6F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR7": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR8": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR9F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR10": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR11F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR12": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR13F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR14": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR15": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR16": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR17": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR18": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR19": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR20": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR21": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR22": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR23": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR24": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR25": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR26": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR27": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR28": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR29": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30A": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30B": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30C": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30D": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30E": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR30F": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR31": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR32": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR33": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR34": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR35": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR36": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR37": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR38": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR39": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR40": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR41": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR42": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR43": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR44": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR45": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FOR46": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORA": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORB": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORC": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORD": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORE": {
                    "type": "float",
                    "defaultValue": 2.34
                },
                "FORF": {
                    "type": "float",
                    "defaultValue": 2.34
                }
            }
        }
    },
    "produces": [
        "application/json"
    ]
}