Search persons by ‘query’
URLGET <application-url>/api/person/search
Query parameter
- query
mandatory: true
url encoded search query - roleId
- instanceOwnerOnly
possible: true, false
default: false
only load instanceOwners, if true - hideInstanceOwner
possible: true, false
default: false
hide instanceOwners, if true - demoOnly
possible: true, false
default: false
only load demo users, if true - hideDemo
possible: true, false
default: false
hide demo users, if true - limitedOnly
possible: true, false
default: false
only load limited users, if true - hideLimited
possible: true, false
default: false
hide limited users, if true - activeOnly
possible: true, false
default: false
only load active persons - hideActive
possible: true, false
default: false
only load inactive persons - orderBy
possible:
id
active
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
SampleGET http://localhost:8080/mtr-backend/api/person/search?query=philipp
Search autocomplete
URLGET <application-url>/api/person/search/autocomplete
Query parameter
- query
mandatory: true
url encoded search query - roleId
- instanceOwnerOnly
possible: true, false
default: false
only load instanceOwners, if true - hideInstanceOwner
possible: true, false
default: false
hide instanceOwners, if true - activeOnly
possible: true, false
default: false
only load active persons - hideActive
possible: true, false
default: false
only load inactive persons
Produces
application/json
application/xml
List<com.matterial.mtr.api.object.SearchAutocompleteSuggest>
- 200 OK
- 400 BAR_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/person/search/autocomplete
Reindex all persons
URLPUT / POST <application-url>/api/person/search/reindexall
- 202 ACCEPTED
- 500 INTERNAL_SERVER_ERROR
Permission
ADMINISTRATE_ALL
SamplePUT http://localhost:8080/mtr-backend/api/person/search/reindexall