Api session event editor source add service: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
API Endpoint: api/session/event/editorsource/add_service/
API Endpoint: api/session/event/editorsource/add_service/


Description: Add a new Service [[Source]], given a Geo [[Format]], Name, URL and Uploader.
Description: Add a new Service [[Source]], given a Geo Format, Name, URL and Uploader


{|class=wikitable
{|class=wikitable
Line 13: Line 13:
| REQUIRED
| REQUIRED
| (Enumeration)
| (Enumeration)
| Geo [[Format]]
| Geo Format
| BGT_GML, DXF, ESRI_IMAGE, ESRI_JSON, GEOJSON, GEOPACKAGE, GEOTIFF, I3S, OSM, WCS_TIFF, WFS_GML, WFS_JSON  or  WMS_IMAGE
| BGT_GML, DXF, ESRI_IMAGE, ESRI_JSON, GEOJSON, GEOPACKAGE, GEOTIFF, I3S, OSM, WCS_TIFF, WFS_GML, WFS_JSON  or  WMS_IMAGE
|-
|-

Latest revision as of 15:15, 11 November 2026

API Endpoint: api/session/event/editorsource/add_service/

Description: Add a new Service Source, given a Geo Format, Name, URL and Uploader

Index Importance Type Description Values
0 REQUIRED (Enumeration) Geo Format BGT_GML, DXF, ESRI_IMAGE, ESRI_JSON, GEOJSON, GEOPACKAGE, GEOTIFF, I3S, OSM, WCS_TIFF, WFS_GML, WFS_JSON or WMS_IMAGE
1 REQUIRED (String) Name
2 REQUIRED (String) URL
3 REQUIRED (String) Uploader Name

Response Codes

Response Code: Description
200 Integer (Service Source ID)
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/session/event/editorsource/add_service/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "GEOJSON", "Name", "URL", "Uploader Name" ]'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ "GEOJSON", "Name", "URL", "Uploader Name" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorsource/add_service/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));