{
"name": "Testando a API",
"fontStyle": "Arial",
"fontSize": 1,
"align": "left",
"orientation": "L",
"size": "A4",
"marginTop": 1,
"marginRight": 1,
"marginBottom": 1,
"marginLeft": 1,
"showHealthPlan": 1,
"showRequester": 1,
"showAssistant": 1,
"showTechnician": true,
"showAnesthetist": false,
"showEquipment": 1,
"showDiagnosis": 1,
"hideExaminer": 1,
"showPictureFrame": 1,
"showReferenceImage": false,
"showSign": 0,
"amountImage": 0,
"language": "en-US",
"header": {
"id": 1,
"name": "Zscan Software",
"type": "H",
"fontSize": 2,
"fontType": "Arial",
"fontColor": "4px solid",
"backgroundColor": "4px solid rgb(0, 0, 0)",
"height": 4,
"userCreated": {
"id": -1
},
"userChanged": {
"id": -1
},
"userDeleted": {
"id": null
},
"dateHourCreated": "2018-07-31T13:15:27.000Z",
"dateHourChanged": "2018-07-31T13:15:27.000Z",
"dateHourDeleted": null
},
"footer": {
"id": 2,
"name": "Zscan",
"type": "F",
"fontSize": 2,
"fontType": "Arial",
"fontColor": "4px solid rgb(0, 0, 0)",
"backgroundColor": "4px solid rgb(0, 0, 0)",
"height": 1.9,
"userCreated": {
"id": -1
},
"userChanged": {
"id": -1
},
"userDeleted": {
"id": null
},
"dateHourCreated": "2018-07-31T13:17:23.000Z",
"dateHourChanged": "2018-07-31T13:18:16.000Z",
"dateHourDeleted": null
},
"layoutImage": {
"id": 15,
"name": "Image Up",
"position": "UP",
"columns": 2,
"userCreated": {
"id": -1
},
"userChanged": null,
"userDeleted": null,
"dateHourCreated": "2018-07-31T09:10:35.000Z",
"dateHourChanged": "2018-07-31T09:10:35.000Z",
"dateHourDeleted": null
},
"fields": [
{
"id": 1,
"template": {
"id": 1
},
"title": "Field 1",
"order": 0,
"type": "Text",
"userCreated": {
"id": -1
}
},
{
"template": {
"id": 1
},
"title": "Field 2",
"order": 1,
"type": "Simple Text",
"userCreated": {
"id": -1
}
},
{
"template": {
"id": 1
},
"title": "Field 3",
"order": 2,
"type": "Check Box",
"userCreated": {
"id": -1
}
}
],
"userCreated": {
"id": -1
},
"userChanged": {
"id": null
},
"userDeleted": {
"id": null
}
}curl --location --request POST 'https://prod.your-api-server.com/api/v1/template' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Testando a API",
"fontStyle": "Arial",
"fontSize": 1,
"align": "left",
"orientation": "L",
"size": "A4",
"marginTop": 1,
"marginRight": 1,
"marginBottom": 1,
"marginLeft": 1,
"showHealthPlan": 1,
"showRequester": 1,
"showAssistant": 1,
"showTechnician": true,
"showAnesthetist": false,
"showEquipment": 1,
"showDiagnosis": 1,
"hideExaminer": 1,
"showPictureFrame": 1,
"showReferenceImage": false,
"showSign": 0,
"amountImage": 0,
"language": "en-US",
"header": {
"id": 1,
"name": "Zscan Software",
"type": "H",
"fontSize": 2,
"fontType": "Arial",
"fontColor": "4px solid",
"backgroundColor": "4px solid rgb(0, 0, 0)",
"height": 4,
"userCreated": {
"id": -1
},
"userChanged": {
"id": -1
},
"userDeleted": {
"id": null
},
"dateHourCreated": "2018-07-31T13:15:27.000Z",
"dateHourChanged": "2018-07-31T13:15:27.000Z",
"dateHourDeleted": null
},
"footer": {
"id": 2,
"name": "Zscan",
"type": "F",
"fontSize": 2,
"fontType": "Arial",
"fontColor": "4px solid rgb(0, 0, 0)",
"backgroundColor": "4px solid rgb(0, 0, 0)",
"height": 1.9,
"userCreated": {
"id": -1
},
"userChanged": {
"id": -1
},
"userDeleted": {
"id": null
},
"dateHourCreated": "2018-07-31T13:17:23.000Z",
"dateHourChanged": "2018-07-31T13:18:16.000Z",
"dateHourDeleted": null
},
"layoutImage": {
"id": 15,
"name": "Image Up",
"position": "UP",
"columns": 2,
"userCreated": {
"id": -1
},
"userChanged": null,
"userDeleted": null,
"dateHourCreated": "2018-07-31T09:10:35.000Z",
"dateHourChanged": "2018-07-31T09:10:35.000Z",
"dateHourDeleted": null
},
"fields": [
{
"id": 1,
"template": {
"id": 1
},
"title": "Field 1",
"order": 0,
"type": "Text",
"userCreated": {
"id": -1
}
},
{
"template": {
"id": 1
},
"title": "Field 2",
"order": 1,
"type": "Simple Text",
"userCreated": {
"id": -1
}
},
{
"template": {
"id": 1
},
"title": "Field 3",
"order": 2,
"type": "Check Box",
"userCreated": {
"id": -1
}
}
],
"userCreated": {
"id": -1
},
"userChanged": {
"id": null
},
"userDeleted": {
"id": null
}
}'{}