Details
- 
        Type:Monitor 
- 
        Status: Closed
- 
            Priority: Major Major
- 
            Resolution: Done
- 
            Affects Version/s: None
- 
            Fix Version/s: 2021
- 
            Component/s: FIWARE-TECH-HELP
- 
            Labels:
- 
                        HD-Chapter:WebUI
- 
                        HD-Enabler:POI Provider
Description
Created question in FIWARE Q/A platform on 19-11-2015 at 14:11
Please, ANSWER this question AT https://stackoverflow.com/questions/33804924/fiware-poi-add-poi-web-service-fw-media-structure
Question:
Fiware POI add_poi web service fw_media structure
Description:
I created json for adding new poi with fw_media data included, based on json from example_components/fw_media.json:
{"fw_core":
    {"location":{"wgs84":{"latitude":1,"longitude":1}},
    "categories":["Field"],
    "name":{"":"poljana 1"}},
"fw_media": {
     "entities": [
       {
         "type": "photo",
         "short_label": 
,
         "caption": 
,
         "description": 
,
         "thumbnail": "http://www.example.org/sunset_on_sea_tbn.jpg",
         "url": "http://www.example.org/sunset_on_sea.jpg",
         "copyright": "Photo: Ari Okkonen"
       },
       {
         "type": "audio",
         "short_label": 
,
         "url": "http://www.example.org/sakkijarven_polkka.mp3"
       }
     ],
"last_update": {
    "timestamp": 1390203898
}, "source": 
But im getting error:
JSON does not validate. Violations:
[fw_media] The property - source - is not defined and the definition      
does not allow additional properties
POI data validation failed!
Can you give me example of working fw_media json?
And also is it possible to upload image with poi in fw_media?(Not just url to image but whole image)
Activity
- All
- Comments
- History
- Activity
- Transitions