{
  "openapi": "3.0.0",
  "info": {
    "version": "1.1.4",
    "title": "Configuraties",
    "description": "<p>\n  Een REST-API voor het beheren van de diverse configuraties waarmee het gedrag\n  van het omgevingsloket gestuurd kan worden.\n</p> <h1>WerkzaamheidCompleet Configuratie</h1> <p>\n  Door werkzaamheden als \"compleet\" aan te merken kunnen bestuursorganen de initiatiefnemer\n  meer zekerheid geven over het feit of zij plichtenvrij zijn, de begeleidende teksten op \n  de conclusiepagina van het loket voor werkzaamheden die compleet zijn zijn namelijk anders\n  dan voor werkzaamheden die dat niet zijn.       \n</p> <p>\n  \"Compleet\" betekent in dit geval dat de werkzaamheid voor het onderhavige bestuursorgaan\n  gekoppeld is aan alle activiteiten waarvan dat juridisch zou moeten.   \n</p> <p>\n  Met deze configuratie kan de aanroeper voor één bestuursorgaan en één werkzaamheid aangeven\n  dat deze compleet is.\n</p>",
    "contact": {
      "name": "Ontwikkelaarsportaal Omgevingswet",
      "url": "https://developer.omgevingswet.overheid.nl/services/contact/"
    }
  },
  "paths": {
    "/": {
      "get": {
        "summary": "OpenApi Specification",
        "deprecated": true,
        "description": "Deprecated - gebruik in plaats hiervan /openapi.json.",
        "tags": [
          "Meta"
        ],
        "responses": {
          "200": {
            "description": "OpenApi Specification Json",
            "content": {
              "application/json": {
                "schema": {
                  "example": "{\"openapi\": \"3.0.0\", ... }"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "OpenApi Specification",
        "tags": [
          "Meta"
        ],
        "responses": {
          "200": {
            "description": "OpenApi Specification Json",
            "content": {
              "application/json": {
                "schema": {
                  "example": "{\"openapi\": \"3.0.0\", ... }"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "health info",
        "tags": [
          "Meta"
        ],
        "responses": {
          "200": {
            "description": "Health",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "UP"
                      ]
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Health",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "DOWN",
                        "OUT_OF_SERVICE"
                      ]
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/info": {
      "get": {
        "summary": "applicatie info",
        "tags": [
          "Meta"
        ],
        "responses": {
          "200": {
            "description": "Info",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Info",
                  "required": [
                    "app"
                  ],
                  "properties": {
                    "app": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "version2": {
                          "type": "string"
                        },
                        "buildtime": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/werkzaamheidcompleetConfiguraties": {
      "get": {
        "summary": "Ophalen werkzaamheidCompleet configuraties.",
        "description": "<p>\n  Deze service retourneert de werkzaamheid / bestuursorgaan combinaties die zijn aangemerkt\n  als compleet. Er kan gefilterd worden op bestuursorgaan OIN en / of op werkzaamheid URN.\n</p>",
        "tags": [
          "Werkzaamheid Compleet"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/pageSizeEnum"
          },
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "name": "werkzaamheidUrn",
            "in": "query",
            "required": false,
            "description": "Retourneer alleen werkzaamheidCompleet configuraties voor deze werkzaamheid",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bestuursorgaanOin",
            "in": "query",
            "description": "Retourneer alleen werkzaamheidCompleet configuraties voor dit bestuursorgaan",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lijst van alle werkzaamheidCompleet configuraties die voldoen aan de meegegeven filter parameters",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieHalResponseList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "summary": "Creeer een werkzaamheidCompleet configuratie",
        "description": "Creeer een werkzaamheidCompleet configuratie waarmee de opgegeven werkzaamheid en bestuursorgaan combinatie wordt aangemerkt als compleet",
        "requestBody": {
          "description": "De combinatie van werkzaamheid en bestuursorgaan die als compleet aangemerkt moet worden",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieRequest"
              }
            }
          }
        },
        "tags": [
          "Werkzaamheid Compleet"
        ],
        "responses": {
          "200": {
            "description": "De zojuist aangemaakt werkzaamheidCompleet configuratie",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieHalResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/werkzaamheidcompleetConfiguraties/{werkzaamheidcompleetconfiguratie-id}": {
      "get": {
        "summary": "Ophalen specifieke WerkzaamheidCompleet configuratie",
        "tags": [
          "Werkzaamheid Compleet"
        ],
        "description": "Retourneert de werkzaamheidCompleet configuratie behorende bij de meegegeven identifier",
        "parameters": [
          {
            "$ref": "#/components/parameters/werkzaamheidcompleetconfiguratie-id"
          }
        ],
        "responses": {
          "200": {
            "description": "De werkzaamheidCompleet configuratie behorende bij de meegegeven identifier",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieHalResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "summary": "Verwijderen werkzaamheidCompleet configuratie",
        "tags": [
          "Werkzaamheid Compleet"
        ],
        "description": "Verwijdert een bestaande werkzaamheidCompleet configuratie behorende bij de meegegeven identifier. Na deze operatie is de werkzaamheid/bestuursorgaan combinatie horende bij deze configuratie niet meer gemarkeerd als compleet.",
        "parameters": [
          {
            "$ref": "#/components/parameters/werkzaamheidcompleetconfiguratie-id"
          }
        ],
        "responses": {
          "200": {
            "description": "De werkzaamheidCompleet configuratie behorende bij de meegegeven identifier voordat deze verwijderd was",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieHalResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "pageSizeEnum": {
        "name": "pageSize",
        "description": "Het gewenste aantal items per pagina in een gepagineerde response. Indien deze parameter niet ingevuld is worden er standaard 20 resultaten geretourneerd.",
        "in": "query",
        "schema": {
          "type": "integer",
          "default": 20,
          "enum": [
            10,
            20,
            50,
            100,
            200
          ]
        },
        "required": false
      },
      "page": {
        "name": "page",
        "description": "De pagina die geretourneerd moet worden in een gepagineerde response. Wanneer er geen pagina nummer is opgegeven wordt de eerste pagina geretourneerd",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        },
        "required": false
      },
      "werkzaamheidcompleetconfiguratie-id": {
        "name": "werkzaamheidcompleetconfiguratie-id",
        "in": "path",
        "description": "de identifier van de werkzaamheidCompleet configuratie",
        "required": true,
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "400": {
        "description": "Fouten (missing parameter; niet bestaande parameter; invalide waarde voor parameter)",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "required": [
                    "type",
                    "title",
                    "status"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Het type fout dat opgetreden is. Bijvoorbeeld VALIDATIE_FOUT of ONVERWACHTE_FOUT."
                    },
                    "title": {
                      "type": "string",
                      "description": "Informatie over de opgetreden fout."
                    },
                    "status": {
                      "type": "integer",
                      "format": "int64",
                      "description": "De statuscode van de fout (= 400) overeenkomend met de http-status code van de response."
                    },
                    "detail": {
                      "type": "string",
                      "description": "Meer detail informatie over de opgetreden fout"
                    },
                    "instance": {
                      "type": "string",
                      "description": "Het unieke instance id van het request dat resulteerde in de foutmelding."
                    }
                  }
                },
                {
                  "properties": {
                    "invalid-params": {
                      "type": "array",
                      "items": {
                        "required": [
                          "type",
                          "name",
                          "reason"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Een type van de fout, bijvoorbeeld 'Validatie melding'"
                          },
                          "name": {
                            "type": "string",
                            "description": "'Naam van de parameter die een fout bevat, bijvoorbeeld: activiteitFunctioneleStructuurRef'"
                          },
                          "reason": {
                            "type": "string",
                            "description": "Bijvoorbeeld 'de activiteitFunctioneleStructuurRef mag geen speciale karakters bevatten.'"
                          }
                        }
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "404": {
        "description": "De gevraagde resource is niet gevonden",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "required": [
                    "type",
                    "title",
                    "status"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Het type resource dat niet gevonden is."
                    },
                    "title": {
                      "type": "string",
                      "description": "Informatie over de opgetreden fout."
                    },
                    "status": {
                      "type": "integer",
                      "format": "int64",
                      "description": "De statuscode van de fout (= 404) overeenkomend met de http-status code van de response."
                    },
                    "detail": {
                      "type": "string",
                      "description": "Meer detail informatie over de opgetreden fout"
                    },
                    "instance": {
                      "type": "string",
                      "description": "Het unieke instance id van het request dat resulteerde in de foutmelding."
                    }
                  }
                },
                {
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Bevat informatie over het type object dat niet gevonden is. Bijvoorbeeld ACTIVITY_NOT_FOUND of SUBACTIVITY_NOT_FOUND"
                    },
                    "detail": {
                      "type": "string",
                      "description": "De identifier van het object dat niet gevonden is. Bijvoorbeeld de URN van een activiteit."
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "500": {
        "description": "Er is een onverwachte technische fout opgetreden",
        "content": {
          "application/json": {
            "schema": {
              "required": [
                "type",
                "title",
                "status"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Het type fout dat opgetreden is. Bijvoorbeeld VALIDATIE_FOUT of ONVERWACHTE_FOUT."
                },
                "title": {
                  "type": "string",
                  "description": "Informatie over de opgetreden fout."
                },
                "status": {
                  "type": "integer",
                  "format": "int64",
                  "description": "De statuscode (= 500) van de fout overeenkomend met de http-status code van de response."
                },
                "detail": {
                  "type": "string",
                  "description": "Meer detail informatie over de opgetreden fout"
                },
                "instance": {
                  "type": "string",
                  "description": "Het unieke instance id van het request dat resulteerde in de foutmelding."
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "WerkzaamheidCompleetConfiguratieHalResponseList": {
        "required": [
          "_links",
          "page"
        ],
        "properties": {
          "_embedded": {
            "required": [
              "werkzaamheidcompleetConfiguraties"
            ],
            "properties": {
              "werkzaamheidcompleetConfiguraties": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieHalResponse"
                }
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/HalPaginationLinks"
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        }
      },
      "WerkzaamheidCompleetConfiguratieHalResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieResponse"
          },
          {
            "required": [
              "_links"
            ],
            "properties": {
              "_links": {
                "required": [
                  "self"
                ],
                "properties": {
                  "self": {
                    "$ref": "#/components/schemas/HalLink"
                  }
                }
              }
            }
          }
        ]
      },
      "WerkzaamheidCompleetConfiguratieResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WerkzaamheidCompleetConfiguratieRequest"
          },
          {
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "description": "de identifier van de werkzaamheidCompleet configuratie."
              }
            }
          }
        ]
      },
      "WerkzaamheidCompleetConfiguratieRequest": {
        "required": [
          "werkzaamheidUrn",
          "bestuursorgaanOin"
        ],
        "properties": {
          "werkzaamheidUrn": {
            "$ref": "#/components/schemas/WerkzaamheidUrn"
          },
          "bestuursorgaanOin": {
            "$ref": "#/components/schemas/Oin"
          }
        }
      },
      "WerkzaamheidUrn": {
        "description": "Urn van de werkzaamheid",
        "type": "string",
        "pattern": "^\\w{1,100}$",
        "example": "BoomKappen"
      },
      "Oin": {
        "description": "Identificatie van een bestuursorgaan.",
        "type": "string",
        "minLength": 20,
        "maxLength": 20
      },
      "HalPaginationLinks": {
        "description": "Links om te navigeren door de paginering",
        "required": [
          "self",
          "first",
          "last"
        ],
        "properties": {
          "self": {
            "description": "uri voor het opvragen van de huidige pagina van deze collectie",
            "allOf": [
              {
                "$ref": "#/components/schemas/HalLink"
              }
            ]
          },
          "first": {
            "description": "uri voor het opvragen van de eerste pagina van deze collectie",
            "allOf": [
              {
                "$ref": "#/components/schemas/HalLink"
              }
            ]
          },
          "last": {
            "description": "uri voor het opvragen van de laatste pagina van deze collectie",
            "allOf": [
              {
                "$ref": "#/components/schemas/HalLink"
              }
            ]
          },
          "prev": {
            "description": "uri voor het opvragen van de vorige pagina van deze collectie",
            "allOf": [
              {
                "$ref": "#/components/schemas/HalLink"
              }
            ]
          },
          "next": {
            "description": "uri voor het opvragen van de volgende pagina van deze collectie",
            "allOf": [
              {
                "$ref": "#/components/schemas/HalLink"
              }
            ]
          }
        }
      },
      "Page": {
        "description": "Info voor paginering.",
        "type": "object",
        "required": [
          "size",
          "totalElements",
          "totalPages",
          "number"
        ],
        "properties": {
          "size": {
            "deprecated": true,
            "description": "het aantal items op de huidige pagina. Let op: in een volgende versie wordt dit de gevraagde paginagrootte.",
            "type": "integer",
            "minimum": 0
          },
          "totalElements": {
            "description": "het totaal aantal items in deze collectie",
            "type": "integer",
            "minimum": 0
          },
          "totalPages": {
            "description": "het totaal aantal pagina's in deze collectie",
            "type": "integer",
            "minimum": 0
          },
          "number": {
            "description": "het huidige paginanummer",
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "HalLink": {
        "description": "HAL link",
        "required": [
          "href"
        ],
        "properties": {
          "href": {
            "description": "URI",
            "type": "string"
          }
        }
      }
    }
  },
  "x-wso2-cors": {
    "accessControlAllowOrigins": [
      "*"
    ],
    "corsConfigurationEnabled": true,
    "accessControlAllowCredentials": false,
    "accessControlAllowMethods": [
      "GET",
      "PUT",
      "POST",
      "DELETE",
      "PATCH",
      "OPTIONS"
    ],
    "accessControlAllowHeaders": [
      "authorization",
      "Access-Control-Allow-Origin",
      "Content-Type",
      "SOAPAction"
    ]
  }
}

