I am trying to make my first steps with FIWARE and I am not able to make a correct POST request with this example:
POST http://localhost:1026/v2/entities/
Headers:
{
'Content-Type': 'application/json',
'Fiware-Service': 'tourguide'
'Fiware-ServicePath': '/Franchise1'
}
{
"id": "sample-id",
"type": "Restaurant",
"address": {
"type": "PostalAddress",
"value": {
"streetAddress": "Cuesta de las Cabras Aldapa 2",
"addressRegion": "Araba",
"addressLocality": "Alegría-Dulantzi",
"postalCode": "01240"
}
},
"aggregateRating": {
"type": "AggregateRating",
"value": {
"ratingValue": 3,
"reviewCount": 98
}
},
"capacity": {
"type": "PropertyValue",
"value": 100
},
"department": {
"type": "Text",
"value": "Franchise1"
},
"description": {
"type": "Text",
"value": "Sample description"
},
"location": {
"type": "geo:point",
"value": "42.8404625, -2.5123277"
},
"name": {
"type": "Text",
"value": "Sample-restaurant"
},
"occupancyLevels": {
"type": "PropertyValue",
"value": 0,
"metadata": {
"timestamp": {
"type": "DateTime",
"value": "2016-09-19T06:32:15.901Z"
}
}
},
"priceRange": {
"type": "Number",
"value": 0
},
"telephone": {
"type": "Text",
"value": "945 400 868"
}
}
It is an example of the FIWARE documentation itself.