Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Filters

ahonor edited this page May 22, 2012 · 1 revision

WikiAPI ReferenceFilters

Authenticating

See Authenticating

CREATE

Create a new Filters:

curl --verbose --request POST --header "Content-Type: application/json" -d "{dataType:'test',regex:'test'}" http://localhost:8080/api/filter/none --cookie cookies.txt

EDIT

Edit an Filters:

curl --verbose --request PUT --header "Content-Type: application/json" -d "{id:12,dataType:'test2',regex:'test'}" http://localhost:8080/api/filter/none --cookie cookies.txt

SHOW

Get data about a Filters:

curl --request GET http://localhost:8080/api/filter/{format}/1 --cookie cookies.txt

Wherein {format} can be replaced with:

  • xml
  • json
  • none

LIST

List all Filters:

curl --verbose --request POST --header "Content-Type: application/json" http://localhost:8080/api/filter/list/{format} --cookie cookies.txt

DELETE

Delete a Filters:

curl --request DELETE http://localhost:8080/api/filter/none/1 --cookie cookies.txt

DELETE MULTIPLE

Comma separated list of Filter IDs:

curl --request DELETE http://localhost:8080/api/filter/none/{1,2} --cookie cookies.txt

Clone this wiki locally