Allergenen


Detail

GET api/v1/allergeen/detail/{ID}


Requires authentication

Ophalen van een specifiek allergeen

Query parameters

Parameter Status Description
AllergeenID required

Example request

curl -X GET -G "/api/v1/allergeen/detail/1" \
    -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjE3ZjRkN2Y4YjI1NWVmMWFmMWY5MDFiOTcyODY1MDkyOTdlZjhmOGE4ZGJlZTNmZWFkYmRiODM0YjZkN2NhZjQ4YzZlODk4ZDE5YWFlNjdmIn0.eyJhdWQiOiIxIiwianRpIjoiMTdmNGQ3ZjhiMjU1ZWYxYWYxZjkwMWI5NzI4NjUwOTI5N2VmOGY4YThkYmVlM2ZlYWRiZGI4MzRiNmQ3Y2FmNDhjNmU4OThkMTlhYWU2N2YiLCJpYXQiOjE2NzA0OTY2NTUsIm5iZiI6MTY3MDQ5NjY1NSwiZXhwIjoxNzAyMDMyNjU1LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.Nz6o13kbkhxqTwiE_7sXqC34tEXLDPubMCV19Fqhe38yAdue38dYe3TcASionN6bletxN0cPfxwjF7Pn4dWx8F-6b-NO8SWCJTMzyZDpLf8mITwzrFFvCNquk1JJ-haMay81pUUlcSHaOZNHjP0JCOE-gr35dvx9-BpaLUulwkMqSiDXuiw2ex0prA8UIt1IKJw54baI9mHb5ThU5Eonzdyyk2BLqEXoIuXmkWGrh2GTagVg-SE1r-uS1xHpsJYCtRnAc5sbqQDl8gnYb4gSwuiik6vpFOL7SOiluPj-mDl6okBgNBdoU5KiBjgF4RcOWBKFHMKl0IHidy4ewbJad47riWHIseNdeIod0VPFB7D4vJCzbbZHHb6soY57kLIHwmaf-ugr_QGUT7XqvFY-OPhu5PbfVwR-O6yItnYhW4NGERgVMKVwo1UYpOkhLrWJzE6X9vSLj8yOPUILyrkgzBRCcjE98Wah25bA5ERWP-Ocu2zVSXQ3t7clgcNUae-K-4-Z7YQ8ef8CpdcLdT65b4ZpFpDYSJ-WoHux5HH6hVWa_ZJfphZr-I4PiUvA210Lzqk81DiKD8Qby5_JsCPJLV1dNSLSbZGKsZDThXmw9E7vHoteMKSCoOIo2BoQX8rNEz0lFSbqdr3GgEvS20A546leNGtwGBnIRlsPAvT1J9I"

Example response (200):

{
    "AllergeenID": 58,
    "Omschrijving": "Gluten",
    "AlternatieveOmschrijvingKeukenbon": null,
    "Actief": true,
    "Geimporteerd": false,
    "TonenOpKeukenbon": false,
    "AllergenenTypeCode": "G"
}

All

GET api/v1/allergeen/all


Requires authentication

Ophalen van alle Allergeen objecten.

Example request

curl -X GET -G "/api/v1/allergeen/all" \
    -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjE3ZjRkN2Y4YjI1NWVmMWFmMWY5MDFiOTcyODY1MDkyOTdlZjhmOGE4ZGJlZTNmZWFkYmRiODM0YjZkN2NhZjQ4YzZlODk4ZDE5YWFlNjdmIn0.eyJhdWQiOiIxIiwianRpIjoiMTdmNGQ3ZjhiMjU1ZWYxYWYxZjkwMWI5NzI4NjUwOTI5N2VmOGY4YThkYmVlM2ZlYWRiZGI4MzRiNmQ3Y2FmNDhjNmU4OThkMTlhYWU2N2YiLCJpYXQiOjE2NzA0OTY2NTUsIm5iZiI6MTY3MDQ5NjY1NSwiZXhwIjoxNzAyMDMyNjU1LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.Nz6o13kbkhxqTwiE_7sXqC34tEXLDPubMCV19Fqhe38yAdue38dYe3TcASionN6bletxN0cPfxwjF7Pn4dWx8F-6b-NO8SWCJTMzyZDpLf8mITwzrFFvCNquk1JJ-haMay81pUUlcSHaOZNHjP0JCOE-gr35dvx9-BpaLUulwkMqSiDXuiw2ex0prA8UIt1IKJw54baI9mHb5ThU5Eonzdyyk2BLqEXoIuXmkWGrh2GTagVg-SE1r-uS1xHpsJYCtRnAc5sbqQDl8gnYb4gSwuiik6vpFOL7SOiluPj-mDl6okBgNBdoU5KiBjgF4RcOWBKFHMKl0IHidy4ewbJad47riWHIseNdeIod0VPFB7D4vJCzbbZHHb6soY57kLIHwmaf-ugr_QGUT7XqvFY-OPhu5PbfVwR-O6yItnYhW4NGERgVMKVwo1UYpOkhLrWJzE6X9vSLj8yOPUILyrkgzBRCcjE98Wah25bA5ERWP-Ocu2zVSXQ3t7clgcNUae-K-4-Z7YQ8ef8CpdcLdT65b4ZpFpDYSJ-WoHux5HH6hVWa_ZJfphZr-I4PiUvA210Lzqk81DiKD8Qby5_JsCPJLV1dNSLSbZGKsZDThXmw9E7vHoteMKSCoOIo2BoQX8rNEz0lFSbqdr3GgEvS20A546leNGtwGBnIRlsPAvT1J9I"

Example response (200):

[
    {
        "AllergeenID": 4,
        "Omschrijving": "Gluten",
        "AlternatieveOmschrijvingKeukenbon": "3",
        "Actief": true,
        "Geimporteerd": false,
        "TonenOpKeukenbon": true,
        "AllergenenTypeCode": "G"
    },
    {
        "AllergeenID": 7,
        "Omschrijving": "Mosterd",
        "AlternatieveOmschrijvingKeukenbon": "7",
        "Actief": true,
        "Geimporteerd": false,
        "TonenOpKeukenbon": true,
        "AllergenenTypeCode": "M"
    }
]

Create

PUT api/v1/allergeen/create


Requires authentication

Aanmaken van een Allergeen

Body parameters

Parameter Type Status Description
Omschrijving string required

Example request

curl -X PUT "/api/v1/allergeen/create" \
    -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjE3ZjRkN2Y4YjI1NWVmMWFmMWY5MDFiOTcyODY1MDkyOTdlZjhmOGE4ZGJlZTNmZWFkYmRiODM0YjZkN2NhZjQ4YzZlODk4ZDE5YWFlNjdmIn0.eyJhdWQiOiIxIiwianRpIjoiMTdmNGQ3ZjhiMjU1ZWYxYWYxZjkwMWI5NzI4NjUwOTI5N2VmOGY4YThkYmVlM2ZlYWRiZGI4MzRiNmQ3Y2FmNDhjNmU4OThkMTlhYWU2N2YiLCJpYXQiOjE2NzA0OTY2NTUsIm5iZiI6MTY3MDQ5NjY1NSwiZXhwIjoxNzAyMDMyNjU1LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.Nz6o13kbkhxqTwiE_7sXqC34tEXLDPubMCV19Fqhe38yAdue38dYe3TcASionN6bletxN0cPfxwjF7Pn4dWx8F-6b-NO8SWCJTMzyZDpLf8mITwzrFFvCNquk1JJ-haMay81pUUlcSHaOZNHjP0JCOE-gr35dvx9-BpaLUulwkMqSiDXuiw2ex0prA8UIt1IKJw54baI9mHb5ThU5Eonzdyyk2BLqEXoIuXmkWGrh2GTagVg-SE1r-uS1xHpsJYCtRnAc5sbqQDl8gnYb4gSwuiik6vpFOL7SOiluPj-mDl6okBgNBdoU5KiBjgF4RcOWBKFHMKl0IHidy4ewbJad47riWHIseNdeIod0VPFB7D4vJCzbbZHHb6soY57kLIHwmaf-ugr_QGUT7XqvFY-OPhu5PbfVwR-O6yItnYhW4NGERgVMKVwo1UYpOkhLrWJzE6X9vSLj8yOPUILyrkgzBRCcjE98Wah25bA5ERWP-Ocu2zVSXQ3t7clgcNUae-K-4-Z7YQ8ef8CpdcLdT65b4ZpFpDYSJ-WoHux5HH6hVWa_ZJfphZr-I4PiUvA210Lzqk81DiKD8Qby5_JsCPJLV1dNSLSbZGKsZDThXmw9E7vHoteMKSCoOIo2BoQX8rNEz0lFSbqdr3GgEvS20A546leNGtwGBnIRlsPAvT1J9I" \
    -H "Content-Type: application/json" \
    -d '{"Omschrijving":"eum"}'

Example response (200):

{
    "id": 60,
    "success": true
}

Delete

DELETE api/v1/allergeen/delete


Requires authentication

Verwijderen van een Allergeen.

Body parameters

Parameter Type Status Description
AllergeenID integer required

Example request

curl -X DELETE "/api/v1/allergeen/delete" \
    -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjE3ZjRkN2Y4YjI1NWVmMWFmMWY5MDFiOTcyODY1MDkyOTdlZjhmOGE4ZGJlZTNmZWFkYmRiODM0YjZkN2NhZjQ4YzZlODk4ZDE5YWFlNjdmIn0.eyJhdWQiOiIxIiwianRpIjoiMTdmNGQ3ZjhiMjU1ZWYxYWYxZjkwMWI5NzI4NjUwOTI5N2VmOGY4YThkYmVlM2ZlYWRiZGI4MzRiNmQ3Y2FmNDhjNmU4OThkMTlhYWU2N2YiLCJpYXQiOjE2NzA0OTY2NTUsIm5iZiI6MTY3MDQ5NjY1NSwiZXhwIjoxNzAyMDMyNjU1LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.Nz6o13kbkhxqTwiE_7sXqC34tEXLDPubMCV19Fqhe38yAdue38dYe3TcASionN6bletxN0cPfxwjF7Pn4dWx8F-6b-NO8SWCJTMzyZDpLf8mITwzrFFvCNquk1JJ-haMay81pUUlcSHaOZNHjP0JCOE-gr35dvx9-BpaLUulwkMqSiDXuiw2ex0prA8UIt1IKJw54baI9mHb5ThU5Eonzdyyk2BLqEXoIuXmkWGrh2GTagVg-SE1r-uS1xHpsJYCtRnAc5sbqQDl8gnYb4gSwuiik6vpFOL7SOiluPj-mDl6okBgNBdoU5KiBjgF4RcOWBKFHMKl0IHidy4ewbJad47riWHIseNdeIod0VPFB7D4vJCzbbZHHb6soY57kLIHwmaf-ugr_QGUT7XqvFY-OPhu5PbfVwR-O6yItnYhW4NGERgVMKVwo1UYpOkhLrWJzE6X9vSLj8yOPUILyrkgzBRCcjE98Wah25bA5ERWP-Ocu2zVSXQ3t7clgcNUae-K-4-Z7YQ8ef8CpdcLdT65b4ZpFpDYSJ-WoHux5HH6hVWa_ZJfphZr-I4PiUvA210Lzqk81DiKD8Qby5_JsCPJLV1dNSLSbZGKsZDThXmw9E7vHoteMKSCoOIo2BoQX8rNEz0lFSbqdr3GgEvS20A546leNGtwGBnIRlsPAvT1J9I" \
    -H "Content-Type: application/json" \
    -d '{"AllergeenID":18}'

Example response (200):

{
    "id": 571,
    "succes": true
}

Update

POST api/v1/allergeen/update


Requires authentication

Updaten van een specifiek Allergeen

Body parameters

Parameter Type Status Description
AllergeenID required optional endpoint: api/v1/allergeen/detail/{id]
Omschrijving string optional
AlternatieveOmschrijvingKeukenbon string optional
Actief string optional 0 of 1
Geimporteerd string optional 0 of 1
TonenOpKeukenbon string optional 0 of 1
AllergenenTypeCode string optional

Example request

curl -X POST "/api/v1/allergeen/update" \
    -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjE3ZjRkN2Y4YjI1NWVmMWFmMWY5MDFiOTcyODY1MDkyOTdlZjhmOGE4ZGJlZTNmZWFkYmRiODM0YjZkN2NhZjQ4YzZlODk4ZDE5YWFlNjdmIn0.eyJhdWQiOiIxIiwianRpIjoiMTdmNGQ3ZjhiMjU1ZWYxYWYxZjkwMWI5NzI4NjUwOTI5N2VmOGY4YThkYmVlM2ZlYWRiZGI4MzRiNmQ3Y2FmNDhjNmU4OThkMTlhYWU2N2YiLCJpYXQiOjE2NzA0OTY2NTUsIm5iZiI6MTY3MDQ5NjY1NSwiZXhwIjoxNzAyMDMyNjU1LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.Nz6o13kbkhxqTwiE_7sXqC34tEXLDPubMCV19Fqhe38yAdue38dYe3TcASionN6bletxN0cPfxwjF7Pn4dWx8F-6b-NO8SWCJTMzyZDpLf8mITwzrFFvCNquk1JJ-haMay81pUUlcSHaOZNHjP0JCOE-gr35dvx9-BpaLUulwkMqSiDXuiw2ex0prA8UIt1IKJw54baI9mHb5ThU5Eonzdyyk2BLqEXoIuXmkWGrh2GTagVg-SE1r-uS1xHpsJYCtRnAc5sbqQDl8gnYb4gSwuiik6vpFOL7SOiluPj-mDl6okBgNBdoU5KiBjgF4RcOWBKFHMKl0IHidy4ewbJad47riWHIseNdeIod0VPFB7D4vJCzbbZHHb6soY57kLIHwmaf-ugr_QGUT7XqvFY-OPhu5PbfVwR-O6yItnYhW4NGERgVMKVwo1UYpOkhLrWJzE6X9vSLj8yOPUILyrkgzBRCcjE98Wah25bA5ERWP-Ocu2zVSXQ3t7clgcNUae-K-4-Z7YQ8ef8CpdcLdT65b4ZpFpDYSJ-WoHux5HH6hVWa_ZJfphZr-I4PiUvA210Lzqk81DiKD8Qby5_JsCPJLV1dNSLSbZGKsZDThXmw9E7vHoteMKSCoOIo2BoQX8rNEz0lFSbqdr3GgEvS20A546leNGtwGBnIRlsPAvT1J9I" \
    -H "Content-Type: application/json" \
    -d '{"AllergeenID":"voluptatum","Omschrijving":"numquam","AlternatieveOmschrijvingKeukenbon":"corporis","Actief":"inventore","Geimporteerd":"aperiam","TonenOpKeukenbon":"veniam","AllergenenTypeCode":"sed"}'

Example response (200):

{
    "id": 60,
    "success": true
}