Skip to content
Snippets Groups Projects
Commit 3f1898ee authored by Marco Holz's avatar Marco Holz
Browse files

Update example requests

parent a0db1085
No related branches found
No related tags found
1 merge request!26Update example requests for POST /submissions
......@@ -33,7 +33,7 @@ $ export DESTINATION_ID=7a2668ad-3081-407c-9358-7ce4b6144b02
$ curl \
-H "Authentication: Bearer $JWT_TOKEN" \
-H "Content-Type: application/json" \
--data "{ \"destinationId\": \"$DESTINATION_ID\", \"announcedContentStructure\": { \"data\": true, \"attachments\": [\"1da99641-2067-4e8b-b049-91b2a6c90544\", \"538a1365-092e-4d80-93b9-90eb8c1f5982\"] } }" \
--data "{ \"destinationId\": \"$DESTINATION_ID\", \"announcedContentStructure\": { \"data\": true, \"attachments\": [\"1da99641-2067-4e8b-b049-91b2a6c90544\", \"538a1365-092e-4d80-93b9-90eb8c1f5982\"] }, \"serviceType\": { \"name\": \"Bauantrag\", \"identifier\": \"urn:de:fim:leika:leistung:99010003001006\" } }" \
-X POST $SERVICE_URL/submissions
> {
......@@ -57,13 +57,17 @@ import axios from 'axios'
const url = '/submissions'
const data = {
destinationId: 'a1270669-ea36-4a0c-8f8f-c9d490e7f2bc',
announcedContentStructure: {
data: true,
attachments: [
'1da99641-2067-4e8b-b049-91b2a6c90544',
'538a1365-092e-4d80-93b9-90eb8c1f5982'
"destinationId": "879ee109-a690-4db8-ab32-424284184d7d",
"announcedContentStructure": {
"data": true,
"attachments": [
"123ee109-a690-4db8-ab32-424284184d7d",
"456ee109-a690-4db8-ab32-424284184d7d"
]
},
"serviceType": {
"name": "Bauantrag",
"identifier": "urn:de:fim:leika:leistung:99010003001006"
}
}
const token = 'eyJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiJyYW5kb20ifQ.lXckRWoWCUBGM4ACZ6wIhYqplJeSw0HMEfE91jD1JPU'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment