REST - Person - Search

REST-Interface

Search persons by 'query'

URL
GET <application-url>/api/person/search

Query parameter

  • query mandatory: true url encoded search query
  • orderBy possible: id login createTime lastLogin lastName firstName the order by
  • orderDir possible: asc, desc default: asc the ordering direction
  • offset
  • limit

Produces

application/json
application/xml

com.matterial.mtr.api.object.SearchResult<Person>

  • 200 OK
  • 400 BAD_REQUEST
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/person/search?query=philipp


Reindex all persons

URL
PUT / POST <application-url>/api/person/search/reindexall

  • 202 ACCEPTED
  • 500 INTERNAL_SERVER_ERROR

Permission
ADMINISTRATE_ALL

Sample
PUT http://localhost:8080/mtr-backend/api/person/search/reindexall

×
Peter's Problem.