Grundlagen6
App6
REST-Endpunkte44
- Activity
- Category
- Category - CategoryType
- ChangeLog
- Client
- Client - ClientPreference
- Client - CompanyInfoResource
- Client - Logo
- Comment
- Conversion
- Document
- Document - AdditionalProperty
- Document - ChangeLog
- Document - ExtensionValue
- Document - Lock
- Document - Rating
- Document - SavedSearch
- Document - Search
- InstanceControl
- InstanceControl - MtrMessage
- InstanceControl - Preference
- Language
- Licence
- Logon
- Logon - AutoLogin
- Logon - LTI
- Logon - MagicLink
- Logon - Ntlm
- Logon - OAuth2 - Cobot
- Logon - OAuth2 - Google
- Logon - OAuth2 - Microsoft
- Logon - Saml
- Notification
- Person
- Person - AccountSetting
- Person - Search
- Role
- Skin
- Task
- Task - TaskStatus
- TempFile
- Test
- Tracking
- Version
API-Objekte41
- AccountSetting
- Activity
- AdditionalProperty
- Attachment
- Category
- CategoryType
- Client
- Comment
- CompanyInfoItem
- Credential
- CredentialWithInvitationText
- DataSource
- Document
- DocumentChangeLog
- DocumentChangeLogMap
- DocumentClipBoardEntry
- DocumentDuplicate
- DocumentForPdfConversion
- DocumentLock
- ExtensionValue
- Language
- Licence
- LicenceUsage
- LoginData
- Logon
- MtrMessage
- MtrVersion
- NotificationContainer
- PasswordContainer
- Person
- PreferenceMapContainer
- Role
- SavedSearch
- SearchAutocompleteSuggest
- SearchResult<Document/Person>
- Signup
- Task
- TaskStatus
- TempFileDescriptor
- TrackingItem
- WildflyDataSource
Get category by id
URLGET <application-url>/api/category/<categoryId>
Path parameter
- categoryId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language - loadUsage
load usage-count of categories. - loadFollowingLanguageKey
possible: de, en, fr, it, …
Requesting a language key will fillCategory.followingfor current account.
Produces
application/json
application/xml
com.matterial.mtr.api.object.Category
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category/7?languageKey=de
Get categories by categorytypeid
URLGET <application-url>/api/category/bytype/<categoryTypeId>
Path parameter
- categoryTypeId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language - quick
possible: true, false
default: “all”
true: only “quick”
false: only “no quick” - loadUsage
load usage-count of categories.
Important: Only if loadUsage:true, orderby “usage” will be possible. - loadFollowingLanguageKey
possible: de, en, fr, it, …
Requesting a language key will fillCategory.followingfor current account. - orderBy
possible:
id
name
categorytypeid
usage (only if loadUsage:true)
default: name
the order by - orderDir
possible: asc, desc
default: asc
the ordering direction - offset
- limit
Produces
application/json
application/xml
List<com.matterial.mtr.api.object.Category>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category/bytype/1
Get categories
URLGET <application-url>/api/category
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language - categoryId
- categoryTypeId
- quick
possible: true, false
default: “all”
true: only “quick”
false: only “no quick” - personal
possible: true, false
default: “all”
true: only my personal
false: only “public” - loadUsage
load usage-count of categories.
Important: Only if loadUsage:true, orderby “usage” will be possible. - loadFollowingLanguageKey
possible: de, en, fr, it, …
Requesting a language key will fillCategory.followingfor current account. - orderBy
possible:
id
name
categorytypeid
usage (only if loadUsage:true)
default: name
the order by - orderDir
possible: asc, desc
default: asc
the ordering direction - offset
- limit
Produces
application/json
application/xml
List<com.matterial.mtr.api.object.Category>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category?categoryTypeId=1
Create category
URLPOST <application-url>/api/category
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Category
Produces
application/json
application/xml
com.matterial.mtr.api.object.Category (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SamplePOST http://localhost:8080/mtr-backend/api/category
Update category
URLPUT <application-url>/api/category/<categoryId>
Path parameter
- categoryId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Category
Produces
application/json
application/xml
com.matterial.mtr.api.object.Category (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SamplePUT http://localhost:8080/mtr-backend/api/category/8
Remove category
URLDELETE <application-url>/api/category/<categoryId>
Path parameter
- categoryId
Produces
text/plain
Integer - count of removed
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SampleDELETE http://localhost:8080/mtr-backend/api/category/9
Remove categories by categorytypeid
URLDELETE <application-url>/api/category/bytype/<categoryTypeId>
Path parameter
- categoryTypeId
Produces
text/plain
Integer - count of removed
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SampleDELETE http://localhost:8080/mtr-backend/api/category/bytype/1
Is following (logged-in account follows a category)
URLGET <application-url>/api/category/<categoryId>/follow
Path parameter
- categoryId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Boolean - true, if following this category in language
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category/2/follow?languageKey=de
Follow category (logged-in account)
URLPUT <application-url>/api/category/<categoryId>/follow
Path parameter
- categoryId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/follow?languageKey=de
Follow category (other account)
URLPUT <application-url>/api/category/<categoryId>/follow/byaccount/<accountId>
Path parameter
- categoryId
- accountId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/follow/byaccount/3?languageKey=de
Unfollow category (logged-in account)
URLPUT <application-url>/api/category/<categoryId>/unfollow
Path parameter
- categoryId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/unfollow?languageKey=de
Unfollow category (other account)
URLPUT <application-url>/api/category/<categoryId>/unfollow/byaccount/<accountId>
Path parameter
- categoryId
- accountId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/unfollow/byaccount/3?languageKey=de
Add category to document(s)
URLPUT <application-url>/api/category/<categoryId>/assign
Path parameter
- categoryId
Query parameter
- documentId
mandatory: yes
document-id
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/assign?documentId=1
Add quick-category to document(s)
URLPUT <application-url>/api/category/quick/assign
Query parameter
- documentId
mandatory: yes
document-id
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/quick/assign?documentId=1
Remove category from document(s)
URLDELETE/PUT <application-url>/api/category/<categoryId>/unassign
Path parameter
- categoryId
Query parameter
- documentId
mandatory: yes
document-id
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/2/unassign?documentId=1
Remove my quick-category from document(s)
URLDELETE/PUT <application-url>/api/category/quick/unassign
Query parameter
- documentId
mandatory: yes
document-id
Produces
text/plain
Integer - count of updates
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/category/quick/unassign?documentId=1