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 additional property by id
URLGET <application-url>/api/document/additionalproperty/<additionalPropertyId>
Path parameter
- additionalPropertyId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language - loadFollowingLanguageKey
possible: de, en, fr, it, …
Requesting a language key will fillAdditionalProperty.followingfor current account.
Produces
application/json
application/xml
com.matterial.mtr.api.object.AdditionalProperty
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/document/additionalproperty/2?languageKey=en
Get additional properties
URLGET <application-url>/api/document/additionalproperty
Query parameter
- propertyType
possible: 0, 1, 2, 3, 4, 5
The number of a known property-type:
0 - all custom additional properties
1 - NEWS
2 - URGENT
3 - HELP_SECTION_DASHBOARD
4 - HELP_SECTION_DOCUMENT_EDITOR
5 - INFO_CENTER - languageKey
possible: de, en, fr, it, …
default: de
The requested language - loadFollowingLanguageKey
possible: de, en, fr, it, …
Requesting a language key will fillAdditionalProperty.followingfor current account. - orderBy
possible:
id
name
description
default: id
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.AdditionalProperty>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/document/additionalproperty?propertyType=5
Create additional property
URLPOST <application-url>/api/document/additionalproperty
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Consumes
application/json
application/xml
com.matterial.mtr.api.object.AdditionalProperty
Produces
application/json
application/xml
com.matterial.mtr.api.object.AdditionalProperty (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_ADDITIONAL_PROPERTY
SamplePOST http://localhost:8080/mtr-backend/api/document/additionalproperty?languageKey=en
Update additional property
URLPUT <application-url>/api/document/additionalproperty/<additionalPropertyId>
Path parameter
- additionalPropertyId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Consumes
application/json
application/xml
com.matterial.mtr.api.object.AdditionalProperty
Produces
application/json
application/xml
com.matterial.mtr.api.object.AdditionalProperty (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_ADDITIONAL_PROPERTY
SamplePUT http://localhost:8080/mtr-backend/api/document/additionalproperty/4?languageKey=de
Remove additional property
URLDELETE <application-url>/api/document/additionalproperty/<additionalpropertyId>
Path parameter
- additionalpropertyId
Produces
text/plain
Integer - count of removed
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_ADDITIONAL_PROPERTY
SampleDELETE http://localhost:8080/mtr-backend/api/document/additionalproperty/4
Is following (logged-in account follows an additional property)
URLGET <application-url>/api/document/additionalproperty/<additionalPropertyId>/follow
Path parameter
- additionalPropertyId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
mandatory: yes
The requested language
Produces
text/plain
Boolean - true, if following this additional property in language
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/document/additionalproperty/2/follow?languageKey=de
Follow additional property (logged-in account)
URLPUT <application-url>/api/document/additionalproperty/<additionalPropertyId>/follow
Path parameter
- additionalPropertyId
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/document/additionalproperty/2/follow?languageKey=de
Follow additional property (other account)
URLPUT <application-url>/api/document/additionalProperty/<additionalPropertyId> /follow/byaccount/<accountId>
Path parameter
- additionalPropertyId
- 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/document/additionalproperty/2/follow/byaccount/3?languageKey=de
Unfollow additional property (logged-in account)
URLPUT <application-url>/api/document/additionalproperty/<additionalPropertyId> /unfollow
Path parameter
- additionalPropertyId
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/document/additionalproperty/2/unfollow?languageKey=de
Unfollow additional property (other account)
URLPUT <application-url>/api/document/additionalproperty/<additionalPropertyId> /unfollow/byaccount/<accountId>
Path parameter
- additionalPropertyId
- 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/document/additionalproperty/2/unfollow/byaccount/3?languageKey=de