The /filter resource supports two custom OPTIONS requests, one for the resource as such and one for individual filter instances. The OPTIONS request allows you to check for the set of available operations that the currently authenticated user can perform on the /filter resource. Whether the user can perform an operation or not may depend on various factors, including the users authorizations to interact with this resource and the internal configuration of the process engine.

Method

OPTIONS /filter for available interactions on resource.

OPTIONS /filter/{id} for available interactions on resource instance.

Result

A JSON object with a single property named links, providing a list of resource links that are allowed actions for the current user. Each link has the following properties

Name Value Description
method String The HTTP method to use for the interaction.
href String The interaction URL.
rel String The relation of the interaction (i.e., a symbolic name representing the nature of the interaction). Examples: create, delete

Response Codes

Code Media type Description
200 application/json Request successful.

Example

Request

OPTIONS /filter/aFilterId

Response

Status 200.

  1. {"links":[
  2. {"method": "GET", href":"http://localhost:8080/engine-rest/filter/aFilterId", "rel":"self"},
  3. {"method": "GET", href":"http://localhost:8080/engine-rest/filter/aFilterId/singleResult", "rel":"singleResult"}
  4. {"method": "POST", href":"http://localhost:8080/engine-rest/filter/aFilterId/singleResult", "rel":"singleResult"}
  5. {"method": "GET", href":"http://localhost:8080/engine-rest/filter/aFilterId/list", "rel":"list"}
  6. {"method": "POST", href":"http://localhost:8080/engine-rest/filter/aFilterId/list", "rel":"list"}
  7. {"method": "GET", href":"http://localhost:8080/engine-rest/filter/aFilterId/count", "rel":"count"}
  8. {"method": "POST", href":"http://localhost:8080/engine-rest/filter/aFilterId/count", "rel":"count"}
  9. {"method": "PUT", href":"http://localhost:8080/engine-rest/filter/aFilterId", "rel":"update"},
  10. {"method": "DELETE", href":"http://localhost:8080/engine-rest/filter/aFilterId", "rel":"delete"}]}

原文: https://docs.camunda.org/manual/7.9/reference/rest/filter/options/