Supported Tasks

A REST API resource can have one or more tasks or actions defined. These tasks are broadly categorized into:

  • Standard methods: These methods are HTTP request methods that are used to perform standard Create, Read, Update, and Delete (CRUD) operations. They're POST, GET, PATCH, PUT, and DELETE respectively.

    For example, to retrieve all events in the application you use the GET method and the /rest/ofscCore/v1/events URI.

  • Custom Actions: These request methods aren't standard Create, Read, Update, and Delete (CRUD) actions. For example, the operation that creates the process of loading and converting a shapefile is exposed as a custom action. It's invoked using the POST method and the /rest/ofscMetadata/v1/mapLayers/custom-actions/populateLayers URI.