{
    "basePath": "http://api.basetax.co.uk/v4",
    "swaggerVersion": "1.2",
    "apiVersion": "1.0.0",
    "resourcePath": "/capital-gains",
    "apis": [
        {
            "path": "/capital-gains",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get all capital gain",
                    "nickname": "getCapitalGains",
                    "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 capital gain",
                    "nickname": "capitalGains",
                    "parameters": [
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "capitalGainObject",
                            "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": "/capital-gains/{id}",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Get one capital gain",
                    "nickname": "capitalGains",
                    "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 capital gain",
                    "nickname": "capitalGains",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "id",
                            "type": "string",
                            "required": true,
                            "description": "Id"
                        },
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "capitalGainObject",
                            "required": true,
                            "description": "Request 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 capital gain",
                    "nickname": "capitalGains",
                    "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": {
        "capitalGainObject": {
            "id": "capitalGainObject",
            "properties": {
                "tax_return_id": {
                    "type": "integer"
                },
                "user_id": {
                    "type": "integer"
                },
                "tax_year_id": {
                    "type": "integer"
                },
                "CGT3": {
                    "type": "integer"
                },
                "CGT4": {
                    "type": "float"
                },
                "CGT5": {
                    "type": "float"
                },
                "CGT6": {
                    "type": "float"
                },
                "CGT7": {
                    "type": "float"
                },
                "CGT8": {
                    "type": "string"
                },
                "CGT9": {
                    "type": "float"
                },
                "CGT10": {
                    "type": "float"
                },
                "CGT12": {
                    "type": "float"
                },
                "CGT13": {
                    "type": "float"
                },
                "CGT14": {
                    "type": "integer"
                },
                "CGT15": {
                    "type": "float"
                },
                "CGT16": {
                    "type": "float"
                },
                "CGT17": {
                    "type": "float"
                },
                "CGT18": {
                    "type": "float"
                },
                "CGT19": {
                    "type": "float"
                },
                "CGT20": {
                    "type": "string"
                },
                "CGT21": {
                    "type": "float"
                },
                "CGT22": {
                    "type": "float"
                },
                "CGT23": {
                    "type": "integer"
                },
                "CGT24": {
                    "type": "float"
                },
                "CGT25": {
                    "type": "float"
                },
                "CGT26": {
                    "type": "float"
                },
                "CGT27": {
                    "type": "float"
                },
                "CGT28": {
                    "type": "string"
                },
                "CGT29": {
                    "type": "float"
                },
                "CGT30": {
                    "type": "float"
                },
                "CGT31": {
                    "type": "integer"
                },
                "CGT32": {
                    "type": "float"
                },
                "CGT33": {
                    "type": "float"
                },
                "CGT34": {
                    "type": "float"
                },
                "CGT35": {
                    "type": "float"
                },
                "CGT36": {
                    "type": "string"
                },
                "CGT37": {
                    "type": "float"
                },
                "CGT38": {
                    "type": "float"
                },
                "CGT39": {
                    "type": "float"
                },
                "CGT40": {
                    "type": "float"
                },
                "CGT41": {
                    "type": "float"
                },
                "CGT42": {
                    "type": "float"
                },
                "CGT43": {
                    "type": "float"
                },
                "CGT44": {
                    "type": "float"
                },
                "CGT45": {
                    "type": "float"
                },
                "CGT46": {
                    "type": "float"
                },
                "CGT47": {
                    "type": "float"
                },
                "CGT48": {
                    "type": "float"
                },
                "CGT49": {
                    "type": "float"
                },
                "CGT50": {
                    "type": "float"
                },
                "CGT51": {
                    "type": "float"
                },
                "CGT52": {
                    "type": "float"
                },
                "CGT53": {
                    "type": "boolean"
                },
                "CGT54": {
                    "type": "string"
                }
            }
        }
    },
    "produces": [
        "application/json"
    ]
}