{
  "info" : {
    "title" : "COR API Services",
    "description" : "Deze Logius REST API's bieden de openbare informatie voor organisaties",
    "contact" : {
      "name" : "Logius",
      "url" : "https://www.logius.nl/diensten/digikoppeling/",
      "email" : "servicecentrum@logius.nl"
    },
    "version" : "2.0.1"
  },
  "security" : [ {
    "default" : [ ]
  } ],
  "paths" : {
    "/heartbeat" : {
      "summary" : "Readiness checks worden gebruikt om aan te geven of de API in staat is om requests te verwerken",
      "description" : "Health - Readiness",
      "get" : {
        "summary" : "Readiness check van deze API",
        "description" : "Controleer of de API gereed is",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HealthCheckResponse"
                }
              }
            }
          },
          "429" : {
            "description" : "Too Many Requests",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HealthCheckResponse"
                }
              }
            }
          },
          "503" : {
            "description" : "Service Unavailable",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HealthCheckResponse"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-throttling-tier" : "Unlimited",
        "x-auth-type" : "None",
        "x-wso2-application-security" : {
          "security-types" : [ "api_key" ],
          "optional" : true
        }
      }
    },
    "/openapi" : {
      "get" : {
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-throttling-tier" : "Unlimited",
        "x-auth-type" : "None",
        "x-wso2-application-security" : {
          "security-types" : [ "api_key" ],
          "optional" : true
        }
      }
    },
    "/openapi.json" : {
      "get" : {
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "security" : [ {
          "default" : [ ]
        } ],
        "x-throttling-tier" : "Unlimited",
        "x-auth-type" : "None",
        "x-wso2-application-security" : {
          "security-types" : [ ],
          "optional" : true
        }
      }
    },
    "/organisaties" : {
      "get" : {
        "summary" : "Lijst met openbare informatie van organisaties",
        "x-throttling-tier" : "Unlimited",
        "x-auth-type" : "None",
        "x-wso2-application-security" : {
          "security-types" : [ "api_key" ],
          "optional" : false
        },
        "parameters" : [ {
          "name" : "itemsPerPagina",
          "in" : "query",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "naam",
          "in" : "query",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "organisatieCode",
          "in" : "query",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "organisatieType",
          "in" : "query",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "paginaIndex",
          "in" : "query",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "status",
          "in" : "query",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "X-Test-Data-Key",
          "in" : "header",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Organisation"
                  }
                }
              },
              "application/hal+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HalCollectionWrapperOrganisation"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ]
      }
    },
    "/organisaties/{oin}" : {
      "get" : {
        "summary" : "Openbare informatie van een organisatie",
        "x-throttling-tier" : "Unlimited",
        "x-auth-type" : "None",
        "x-wso2-application-security" : {
          "security-types" : [ "api_key" ],
          "optional" : false
        },
        "parameters" : [ {
          "name" : "oin",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "string",
            "pattern" : "\\d{20}"
          }
        }, {
          "name" : "expanded_enabled",
          "in" : "query",
          "schema" : {
            "type" : "boolean"
          }
        }, {
          "name" : "referentieDatum",
          "in" : "query",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "X-Test-Data-Key",
          "in" : "header",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Organisation"
                }
              },
              "application/hal+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HalEntityWrapperOrganisation"
                }
              }
            }
          }
        },
        "security" : [ {
          "default" : [ ]
        } ]
      }
    }
  },
  "components" : {
    "schemas" : {
      "HealthCheckResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "$ref" : "#/components/schemas/HealthCheckStatus"
          },
          "checks" : {
            "type" : "array",
            "nullable" : true,
            "items" : {
              "$ref" : "#/components/schemas/HealthCheckListItem"
            }
          }
        }
      },
      "HealthCheckStatus" : {
        "enum" : [ "UP", "DOWN" ],
        "type" : "string"
      },
      "HealthCheckListItem" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string",
            "nullable" : true
          },
          "status" : {
            "$ref" : "#/components/schemas/HealthCheckStatus"
          },
          "data" : {
            "type" : "object",
            "nullable" : true,
            "properties" : {
              "exceptionClass" : {
                "type" : "object"
              },
              "exceptionMessage" : {
                "type" : "object"
              },
              "rootCause" : {
                "type" : "object"
              }
            }
          }
        }
      },
      "HalCollectionWrapperOrganisation" : {
        "type" : "object",
        "properties" : {
          "links" : {
            "type" : "object",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/HalLink"
            }
          },
          "collection" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "links" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "$ref" : "#/components/schemas/HalLink"
                  }
                },
                "entity" : {
                  "$ref" : "#/components/schemas/Organisation"
                }
              }
            }
          },
          "collectionName" : {
            "type" : "string"
          }
        }
      },
      "HalEntityWrapperOrganisation" : {
        "type" : "object",
        "properties" : {
          "links" : {
            "type" : "object",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/HalLink"
            }
          },
          "entity" : {
            "$ref" : "#/components/schemas/Organisation"
          }
        }
      },
      "HalLink" : {
        "type" : "object",
        "properties" : {
          "href" : {
            "type" : "string"
          },
          "title" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          }
        }
      },
      "Kvk" : {
        "type" : "object",
        "properties" : {
          "peildatum" : {
            "$ref" : "#/components/schemas/LocalDateTime"
          },
          "rechtsvorm" : {
            "type" : "string"
          },
          "naam" : {
            "type" : "string"
          }
        }
      },
      "LocalDateTime" : {
        "type" : "string",
        "format" : "date-time",
        "examples" : [ "2022-03-10T12:15:50" ]
      },
      "Organisation" : {
        "type" : "object",
        "properties" : {
          "oin" : {
            "type" : "string"
          },
          "status" : {
            "$ref" : "#/components/schemas/OrganisationStatusType"
          },
          "naam" : {
            "type" : "string"
          },
          "kvkNummer" : {
            "type" : "string"
          },
          "tooiUri" : {
            "type" : "string"
          },
          "hoofdoin" : {
            "$ref" : "#/components/schemas/Organisation"
          },
          "suboins" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Organisation"
            }
          },
          "kvk" : {
            "$ref" : "#/components/schemas/Kvk"
          },
          "roo" : {
            "$ref" : "#/components/schemas/Roo"
          }
        }
      },
      "OrganisationStatusType" : {
        "type" : "string",
        "enum" : [ "Actief", "In Behandeling", "Ingetrokken" ]
      },
      "Roo" : {
        "type" : "object",
        "properties" : {
          "peildatum" : {
            "$ref" : "#/components/schemas/LocalDateTime"
          },
          "organisatieCode" : {
            "type" : "string"
          },
          "organisatieType" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string"
          },
          "voorkeursNaamInclSoort" : {
            "type" : "string"
          },
          "voorkeursNaamExclSoort" : {
            "type" : "string"
          },
          "officieleNaamInclSoort" : {
            "type" : "string"
          },
          "officieleNaamExclSoort" : {
            "type" : "string"
          },
          "alternatieveNaam" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      }
    },
    "securitySchemes" : {
      "default" : {
        "type" : "oauth2",
        "flows" : {
          "implicit" : {
            "authorizationUrl" : "https://test.com",
            "scopes" : { }
          }
        }
      }
    }
  },
  "x-wso2-cors" : {
    "corsConfigurationEnabled" : false,
    "accessControlAllowOrigins" : [ "*" ],
    "accessControlAllowCredentials" : false,
    "accessControlAllowHeaders" : [ "apikey" ],
    "accessControlAllowMethods" : [ "GET" ]
  },
  "x-wso2-production-endpoints" : {
    "urls" : [ "http://onloading-proxy-team-interfaces-cor-v2-0/" ],
    "type" : "http"
  },
  "x-wso2-basePath" : "/cor/2.0",
  "x-wso2-transports" : [ "http", "https" ],
  "x-wso2-application-security" : {
    "security-types" : [ "api_key" ],
    "optional" : false
  },
  "x-wso2-response-cache" : {
    "enabled" : false,
    "cacheTimeoutInSeconds" : 300
  },
  "openapi" : "3.1.0"
}