Public API for fiksvegdata.no
CreateReport
Access: POST /PublicApi/CreateReport
Parameters- title: Subject of the report
- description: Description
- reportername: Name of the person that have created the report
- email: Email of the reporter (will receive notifications about changes to the report)
- easting: Easting of the position of the report (Longitud for WGS84 and X for UTM33)
- northing: Northing of the position of the report (Latitude for WGS84 and Y for UTM33)
- coordinatesystem: Coordinate system for the location, should be either WGS84 or UTM33, (Default: WGS84)
- category: Issue category
The CreateReport operation returns a JSON-formatted response depending on the results..
{ "Status": "OK", "Message": "Report saved OK", "ReportID": "xxxxxxxxx"}
or if not successful
{ "Status": "ERR", "Message": "Details about the error" }
Extra Tags for reports
Reports can contain an unlimited number of extra "tagged" values. These can be everything from browserinformation, searches the user have done to RoutingResults
Tags are sent as three arrays to the service; tagKeys, tagValues and tagValueTypes
- tagKeys: The name of the tags
- tagValues: The tag value
- tagValueTypes: Type type of the tag. Currently supported: property (default), geometry, url
Example: To send information about browser and operatingsystem you can send this as tagkeys
tagKeys=Browser&tagKeys=OS&tagValues=Internet+Explorer&tagValues=Windows+Server+2008&tagValueTypes=property&tagValueTypes=property
AddReportAttachment
Access: POST /PublicApi/AddReportAttachment
Parameters- ReportId: ReportID to add attachment to
- filename: Filename of the attachment
- contentType: Content-Type of the attachment
- data: The content of the attachment (Base64 encoded)
The AddReportAttachment operation returns a JSON-formatted response depending on the results..
{ "Status": "OK", "Message": "Attachment saved", "AttachmentID": "xxxxxxxxx"}
or if not successful
{ "Status": "ERR", "Message": "Details about the error" }