{
    "components": {
        "securitySchemes": {
            "sfcBearerAuthentication": {
                "bearerFormat": "JWT",
                "in": "header",
                "scheme": "bearer",
                "type": "http"
            }
        }
    },
    "info": {
        "contact": {
            "email": "EC-SFC2021-INFO@ec.europa.eu",
            "name": "Support",
            "url": "https://ec.europa.eu/sfc/en/2021/webservices"
        },
        "description": "This is the swagger documentation for the report-agri-api for the SFC2021 frontoffice system.  You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).   ",
        "title": "SFC2021 report-agri-api",
        "version": "3.15.1"
    },
    "openapi": "3.0.1",
    "paths": {
        "/report-agri-api/cbreport/{part}/{id}/{fund}": {
            "get": {
                "operationId": "getCbReportPart",
                "parameters": [
                    {
                        "example": "s1_1",
                        "in": "path",
                        "name": "part",
                        "required": true,
                        "schema": {
                            "enum": [
                                "s10_1_1",
                                "s10_1_2",
                                "s10_1_3",
                                "s10_1_4",
                                "s10_2_1",
                                "s10_2_2",
                                "s10_2_3",
                                "s10_2_4",
                                "s10_3_1",
                                "s10_3_2",
                                "s10_3_3",
                                "s10_3_4",
                                "s10_4_1",
                                "s10_4_2",
                                "s10_4_3",
                                "s10_4_4",
                                "s10_5_1_1",
                                "s10_5_1_2",
                                "s10_5_2_1",
                                "s10_5_2_2",
                                "s10_5_3",
                                "s10_5_4",
                                "s10_6_1_1",
                                "s10_6_1_2",
                                "s10_6_1_3",
                                "s10_6_2_1",
                                "s10_6_2_2",
                                "s10_6_2_3",
                                "s11_1",
                                "s11_2",
                                "s11_3",
                                "s11_4",
                                "s11_5",
                                "s12_1",
                                "s12_2",
                                "s12_3",
                                "s13_1",
                                "s13_2",
                                "s13_3",
                                "s13_4",
                                "s13_5",
                                "s14_1",
                                "s14_2",
                                "s14_3_1",
                                "s14_3_2_1",
                                "s14_3_2_2",
                                "s14_3_3",
                                "s14_3_4",
                                "s15_1",
                                "s15_2",
                                "s15_3",
                                "s16_1",
                                "s16_2",
                                "s16_3_1_1",
                                "s16_3_2_1",
                                "s16_3_3_1",
                                "s16_3_4_1",
                                "s16_3_5",
                                "s16_4",
                                "s16_4_1_1",
                                "s16_4_1_2",
                                "s16_4_1_3",
                                "s16_4_2_1",
                                "s16_4_2_2",
                                "s16_4_3_1",
                                "s16_4_3_2",
                                "s16_4_4_1",
                                "s16_4_4_2",
                                "s16_4_4_3",
                                "s16_4_5_1",
                                "s16_4_5_2",
                                "s16_4_6_1",
                                "s16_4_6_2",
                                "s16_4_6_3",
                                "s16_4_7_1",
                                "s16_4_7_2",
                                "s16_4_8_1",
                                "s16_4_8_2",
                                "s17_1",
                                "s17_2_1",
                                "s17_2_2",
                                "s17_2_3",
                                "s17_3",
                                "s17_4_1_1",
                                "s17_4_1_2",
                                "s17_4_2_1",
                                "s17_4_2_2",
                                "s17_4_3_1",
                                "s17_4_3_2",
                                "s18_1_1",
                                "s18_1_2",
                                "s18_1_3_1",
                                "s18_1_3_2",
                                "s18_1_4",
                                "s18_1_5",
                                "s18_2_1",
                                "s18_2_2",
                                "s18_2_3",
                                "s18_2_4",
                                "s18_2_5",
                                "s18_3_1",
                                "s18_3_2",
                                "s18_3_3",
                                "s18_3_4",
                                "s18_4_1",
                                "s18_4_2",
                                "s18_4_3",
                                "s18_4_4",
                                "s18_5_1",
                                "s18_5_2",
                                "s18_5_3",
                                "s18_5_4",
                                "s18_5_5",
                                "s18_6",
                                "s18_6_1",
                                "s18_6_2",
                                "s18_6_3",
                                "s18_6_4",
                                "s18_6_5",
                                "s18_7_1",
                                "s18_7_2",
                                "s18_7_3",
                                "s18_7_4",
                                "s18_7_5",
                                "s18_8_1",
                                "s18_8_2",
                                "s18_8_3",
                                "s18_8_4",
                                "s18_8_5",
                                "s19_1_1",
                                "s19_1_2",
                                "s1_1",
                                "s1_2",
                                "s1_3_1",
                                "s1_3_2_1",
                                "s1_3_2_2",
                                "s1_3_3",
                                "s1_3_4",
                                "s20_1",
                                "s20_2",
                                "s20_3",
                                "s21_1",
                                "s21_2",
                                "s21_2_1",
                                "s21_2_1_1",
                                "s21_2_2",
                                "s21_2_2_1",
                                "s21_2_3",
                                "s21_2_3_1",
                                "s21_2_4_1",
                                "s21_2_4_2",
                                "s21_2_5",
                                "s21_3",
                                "s21_3_1",
                                "s21_3_1_1",
                                "s21_3_2",
                                "s21_3_2_1",
                                "s21_3_3",
                                "s21_3_3_1",
                                "s21_3_4_1",
                                "s21_3_4_2",
                                "s21_3_5",
                                "s22_1_1",
                                "s22_1_2",
                                "s22_1_3",
                                "s22_2_1",
                                "s22_2_2",
                                "s22_2_3",
                                "s23_1_1",
                                "s23_1_2",
                                "s23_1_3",
                                "s23_1_4",
                                "s23_2_1_1",
                                "s23_2_1_2",
                                "s23_2_1_3",
                                "s23_2_2_1",
                                "s23_2_2_2",
                                "s23_2_2_3",
                                "s23_3_1",
                                "s23_3_2",
                                "s23_3_3",
                                "s23_3_4",
                                "s24_1",
                                "s24_2",
                                "s24_3",
                                "s24_4",
                                "s24_5",
                                "s25_1",
                                "s25_2",
                                "s25_3",
                                "s26_1",
                                "s26_2",
                                "s26_3",
                                "s26_4",
                                "s26_5",
                                "s2_1",
                                "s2_2",
                                "s2_3",
                                "s2_5_5_4",
                                "s2_5_5_5",
                                "s3_1",
                                "s3_2",
                                "s3_3_1",
                                "s3_3_1_1",
                                "s3_3_2",
                                "s3_3_2_1",
                                "s3_3_3",
                                "s3_3_3_1",
                                "s3_3_4",
                                "s3_3_4_1",
                                "s3_3_5",
                                "s3_4",
                                "s3_4_1_1",
                                "s3_4_1_2",
                                "s3_4_1_3",
                                "s3_4_2_1",
                                "s3_4_2_2",
                                "s3_4_3_1",
                                "s3_4_3_2",
                                "s3_4_4_1",
                                "s3_4_4_2",
                                "s3_4_4_3",
                                "s3_4_5_1",
                                "s3_4_5_2",
                                "s3_4_6_1",
                                "s3_4_6_2",
                                "s3_4_6_3",
                                "s3_4_7_1",
                                "s3_4_7_2",
                                "s3_4_8_1",
                                "s3_4_8_2",
                                "s4_1",
                                "s4_2_1",
                                "s4_2_2",
                                "s4_2_3",
                                "s4_3",
                                "s4_4_1_1",
                                "s4_4_1_2",
                                "s4_4_2_1",
                                "s4_4_2_2",
                                "s4_4_3_1",
                                "s4_4_3_2",
                                "s5_1_1",
                                "s5_1_2",
                                "s5_1_3_1",
                                "s5_1_3_2",
                                "s5_1_4",
                                "s5_1_5",
                                "s5_2_1",
                                "s5_2_2",
                                "s5_2_3",
                                "s5_2_4",
                                "s5_2_5",
                                "s5_3_1",
                                "s5_3_2",
                                "s5_3_3",
                                "s5_3_4",
                                "s5_3_5",
                                "s5_4_1",
                                "s5_4_2",
                                "s5_4_3",
                                "s5_4_4",
                                "s5_4_5",
                                "s5_5_1",
                                "s5_5_2",
                                "s5_5_3",
                                "s5_5_4",
                                "s5_5_5",
                                "s5_6_1",
                                "s5_6_2",
                                "s5_6_3",
                                "s5_7_1",
                                "s5_7_2",
                                "s5_7_3",
                                "s5_7_4",
                                "s5_7_5",
                                "s6_1_1",
                                "s6_1_2",
                                "s7_1",
                                "s7_2",
                                "s7_3",
                                "s8_1",
                                "s8_2",
                                "s8_2_1",
                                "s8_2_1_1",
                                "s8_2_2",
                                "s8_2_2_1",
                                "s8_2_3",
                                "s8_2_3_1",
                                "s8_2_4_1",
                                "s8_2_4_2",
                                "s8_2_5",
                                "s8_3",
                                "s8_3_1",
                                "s8_3_1_1",
                                "s8_3_2",
                                "s8_3_2_1",
                                "s8_3_3",
                                "s8_3_3_1",
                                "s8_3_4_1",
                                "s8_3_4_2",
                                "s8_3_5",
                                "s9_1_1",
                                "s9_1_2",
                                "s9_1_3",
                                "s9_2_1",
                                "s9_2_2",
                                "s9_2_3"
                            ],
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "fund",
                        "required": true,
                        "schema": {
                            "enum": [
                                "EAFRD",
                                "EAGF"
                            ],
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "isPdf",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "*/*": {
                                "schema": {
                                    "format": "binary",
                                    "type": "string"
                                }
                            }
                        },
                        "description": "OK"
                    }
                },
                "tags": [
                    "report-controller"
                ]
            }
        },
        "/report-agri-api/cbrn/{part}/{id}/{fund}": {
            "get": {
                "operationId": "getCbrnPart",
                "parameters": [
                    {
                        "example": "s1_1",
                        "in": "path",
                        "name": "part",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "fund",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "isPdf",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "*/*": {
                                "schema": {
                                    "format": "binary",
                                    "type": "string"
                                }
                            }
                        },
                        "description": "OK"
                    }
                },
                "tags": [
                    "report-controller"
                ]
            }
        },
        "/report-agri-api/compare-report/{reportType}/{id}/{compareId}": {
            "get": {
                "description": "Returns the requested report",
                "operationId": "getCompareReport",
                "parameters": [
                    {
                        "example": "REPORT_CSP_ALL",
                        "in": "path",
                        "name": "reportType",
                        "required": true,
                        "schema": {
                            "enum": [
                                "REPORT_ACA_ALL",
                                "REPORT_ACA_SNP",
                                "REPORT_APPLIED_VAL_RULES_ACA",
                                "REPORT_APPLIED_VAL_RULES_APR",
                                "REPORT_APPLIED_VAL_RULES_CBR",
                                "REPORT_APPLIED_VAL_RULES_CBRN",
                                "REPORT_APPLIED_VAL_RULES_COST",
                                "REPORT_APPLIED_VAL_RULES_CSP",
                                "REPORT_APPLIED_VAL_RULES_DIB",
                                "REPORT_APPLIED_VAL_RULES_DOEEAFRD",
                                "REPORT_APPLIED_VAL_RULES_DOEEAGF",
                                "REPORT_APPLIED_VAL_RULES_DOEIPARD",
                                "REPORT_APPLIED_VAL_RULES_EIP",
                                "REPORT_APPLIED_VAL_RULES_GSL",
                                "REPORT_APPLIED_VAL_RULES_IPARD",
                                "REPORT_APPLIED_VAL_RULES_LAGS",
                                "REPORT_APPLIED_VAL_RULES_MAPS",
                                "REPORT_APPLIED_VAL_RULES_WTO",
                                "REPORT_APR_ALL",
                                "REPORT_APR_SNP",
                                "REPORT_APR_XML_ALL",
                                "REPORT_APR_XML_CONTENT",
                                "REPORT_APR_XML_ERRORS",
                                "REPORT_CBRN_ALL",
                                "REPORT_CBR_ALL",
                                "REPORT_COSTS_SNP",
                                "REPORT_COST_ALL",
                                "REPORT_CSP_ALL",
                                "REPORT_CSP_DRAFT_ANNEX_DECISION",
                                "REPORT_CSP_FINANCIAL_INFO",
                                "REPORT_CSP_SNP",
                                "REPORT_CSP_WO_AMENDMENTS",
                                "REPORT_DIB_ALL",
                                "REPORT_DIB_SNP",
                                "REPORT_DOEEAFRD_ALL",
                                "REPORT_DOEEAFRD_DEC",
                                "REPORT_DOEEAFRD_TOTAL",
                                "REPORT_DOEEAFRD_XML_ALL",
                                "REPORT_DOEEAFRD_XML_CONTENT",
                                "REPORT_DOEEAFRD_XML_ERRORS",
                                "REPORT_DOEEAGF_ALL",
                                "REPORT_DOEEAGF_T103",
                                "REPORT_DOEEAGF_T104",
                                "REPORT_DOEEAGF_XML_ALL",
                                "REPORT_DOEEAGF_XML_CONTENT",
                                "REPORT_DOEEAGF_XML_ERRORS",
                                "REPORT_DOEIPARD_ALL",
                                "REPORT_DOEIPARD_SNP",
                                "REPORT_EIP_ALL",
                                "REPORT_EIP_SNP",
                                "REPORT_GSL_ALL",
                                "REPORT_GSL_SNP",
                                "REPORT_IPARD_ALL",
                                "REPORT_IPARD_SNP",
                                "REPORT_LAGS_ALL",
                                "REPORT_LAGS_SNP",
                                "REPORT_MAPS_ALL",
                                "REPORT_MAPS_SNP",
                                "REPORT_WTO_ALL",
                                "REPORT_WTO_SNP"
                            ],
                            "type": "string"
                        }
                    },
                    {
                        "example": 1,
                        "in": "path",
                        "name": "compareId",
                        "required": true,
                        "schema": {
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "example": 2,
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "fromChapter",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "isPdf",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "in": "query",
                        "name": "section",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "toChapter",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "*/*": {
                                "schema": {
                                    "format": "binary",
                                    "type": "string"
                                }
                            }
                        },
                        "description": "successful operation"
                    }
                },
                "summary": "Compare Report invocation page",
                "tags": [
                    "report"
                ]
            }
        },
        "/report-agri-api/report/{reportType}/{id}": {
            "get": {
                "description": "Returns the requested report",
                "operationId": "getReport",
                "parameters": [
                    {
                        "example": "REPORT_OP_IJG_ALL",
                        "in": "path",
                        "name": "reportType",
                        "required": true,
                        "schema": {
                            "enum": [
                                "REPORT_ACA_ALL",
                                "REPORT_ACA_SNP",
                                "REPORT_APPLIED_VAL_RULES_ACA",
                                "REPORT_APPLIED_VAL_RULES_APR",
                                "REPORT_APPLIED_VAL_RULES_CBR",
                                "REPORT_APPLIED_VAL_RULES_CBRN",
                                "REPORT_APPLIED_VAL_RULES_COST",
                                "REPORT_APPLIED_VAL_RULES_CSP",
                                "REPORT_APPLIED_VAL_RULES_DIB",
                                "REPORT_APPLIED_VAL_RULES_DOEEAFRD",
                                "REPORT_APPLIED_VAL_RULES_DOEEAGF",
                                "REPORT_APPLIED_VAL_RULES_DOEIPARD",
                                "REPORT_APPLIED_VAL_RULES_EIP",
                                "REPORT_APPLIED_VAL_RULES_GSL",
                                "REPORT_APPLIED_VAL_RULES_IPARD",
                                "REPORT_APPLIED_VAL_RULES_LAGS",
                                "REPORT_APPLIED_VAL_RULES_MAPS",
                                "REPORT_APPLIED_VAL_RULES_WTO",
                                "REPORT_APR_ALL",
                                "REPORT_APR_SNP",
                                "REPORT_APR_XML_ALL",
                                "REPORT_APR_XML_CONTENT",
                                "REPORT_APR_XML_ERRORS",
                                "REPORT_CBRN_ALL",
                                "REPORT_CBR_ALL",
                                "REPORT_COSTS_SNP",
                                "REPORT_COST_ALL",
                                "REPORT_CSP_ALL",
                                "REPORT_CSP_DRAFT_ANNEX_DECISION",
                                "REPORT_CSP_FINANCIAL_INFO",
                                "REPORT_CSP_SNP",
                                "REPORT_CSP_WO_AMENDMENTS",
                                "REPORT_DIB_ALL",
                                "REPORT_DIB_SNP",
                                "REPORT_DOEEAFRD_ALL",
                                "REPORT_DOEEAFRD_DEC",
                                "REPORT_DOEEAFRD_TOTAL",
                                "REPORT_DOEEAFRD_XML_ALL",
                                "REPORT_DOEEAFRD_XML_CONTENT",
                                "REPORT_DOEEAFRD_XML_ERRORS",
                                "REPORT_DOEEAGF_ALL",
                                "REPORT_DOEEAGF_T103",
                                "REPORT_DOEEAGF_T104",
                                "REPORT_DOEEAGF_XML_ALL",
                                "REPORT_DOEEAGF_XML_CONTENT",
                                "REPORT_DOEEAGF_XML_ERRORS",
                                "REPORT_DOEIPARD_ALL",
                                "REPORT_DOEIPARD_SNP",
                                "REPORT_EIP_ALL",
                                "REPORT_EIP_SNP",
                                "REPORT_GSL_ALL",
                                "REPORT_GSL_SNP",
                                "REPORT_IPARD_ALL",
                                "REPORT_IPARD_SNP",
                                "REPORT_LAGS_ALL",
                                "REPORT_LAGS_SNP",
                                "REPORT_MAPS_ALL",
                                "REPORT_MAPS_SNP",
                                "REPORT_WTO_ALL",
                                "REPORT_WTO_SNP"
                            ],
                            "type": "string"
                        }
                    },
                    {
                        "example": 1,
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "docAttachmentId",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "fromChapter",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "isPdf",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "in": "query",
                        "name": "objectId",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int64",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "section",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "toChapter",
                        "required": false,
                        "schema": {
                            "default": -1,
                            "format": "int32",
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "*/*": {
                                "schema": {
                                    "format": "binary",
                                    "type": "string"
                                }
                            }
                        },
                        "description": "successful operation"
                    }
                },
                "summary": "Report invocation page",
                "tags": [
                    "report"
                ]
            }
        }
    },
    "security": [
        {
            "sfcBearerAuthentication": [
                "read",
                "write"
            ]
        }
    ],
    "servers": [
        {
            "url": "http://sfc2021.net1.cec.eu.int:8080/sfc2021"
        }
    ]
}