...
Code Block |
---|
curl -X POST "http://beta-api-ambita.com/kode/v1/distributormessages/distributor/messages" -H "accept: */*" -H "Authorization: Bearer <access token>" -H "Content-Type: application/json" -d "{ \"message\": \"Meldingen din her\", \"municipalityNumber\": \"integerstring\", \"municipalityName\": \"string\", \"type\": \"string\"}" |
...
Code Block |
---|
{ "id": "8608863f-e39a-4129-83be-c7cfd2701aee", "message": "This is a test message from create", "municipalityName": "INFOLAND", "municipalityNumber": "9999", "dateCreated": "14-01-2021", "type": "CUSTOMER" } |
...
Code Block |
---|
{ "content": { "body": { "id": "8608863f-e39a-4129-83be-c7cfd2701aee", "message": "This is a test message from create", "municipalityName": "INFOLAND", "municipalityNumber": "9999", "dateCreated": "14-01-2021", "type": "CUSTOMER" } }, "eventAction": "Created", "eventType": "DistributorMessages" } |
...
Code Block |
---|
[ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "message": "Dette er et eksempel", "municipalityName": "INFOLAND", "municipalityNumber": "9999", "dateCreated": "14-01-2021", "type": "CUSTOMER" }, { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "message": "Dette er et eksempel2", "municipalityName": "INFOLAND", "municipalityNumber": "9999", "dateCreated": "14-01-2021", "type": "CUSTOMER" } ] |
...