Nieuwsbrieven ============= Huidige versie: 0.1.1 Read ---- .. http:get:: /api2/nieuwsbrieven Lijst van nieuwsbrieven in Recras. **Voorbeeld request**: .. sourcecode:: http GET /api2/nieuwsbrieven HTTP/1.1 Host: demo.recras.nl Accept: application/json **Voorbeeld response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json [ { "id": 1, "naam": "Nieuwsbrief Nederland", "contactformulier": true, "aanmeldingen": 42 }, { "id": 2, "naam": "Nieuwsbrief Belgiƫ", "contactformulier": false, "aanmeldingen": 17 } ] :statuscode 200: OK .. http:get:: /api2/nieuwsbrieven/(int:id) Een specifieke nieuwsbrief. **Voorbeeld request**: .. sourcecode:: http GET /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl Accept: application/json **Voorbeeld response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json { "id": 1, "naam": "Nieuwsbrief Nederland", "contactformulier": true, "aanmeldingen": 42 } Create ------ .. http:post:: /api2/nieuwsbrieven/(int:id) Een nieuwe nieuwsbrief maken. **Voorbeeld request**: .. sourcecode:: http POST /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl { "naam": "Nieuwsbrief Duitsland", "contactformulier": true }