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 comment by id
URLGET <application-url>/api/comment/<commentId>
Path parameter
- commentId
Produces
application/json
application/xml
com.matterial.mtr.api.object.Comment
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/comment/7
Get comments
URLGET <application-url>/api/comment
Query parameter
- documentId
Id of a document - documentLanguageVersionId
The id of a document language version - contactId
Id of a contact - mentionedAccountId
Id of an account, that was mentioned within a comment - languageKey
possible: de, en, fr, it, …
default: de
The requested language - count
possible: true, false
default: false
additionally loading count of comments - orderBy
possible:
createtime
default: createtime
the order by - orderDir
possible: asc, desc
default: desc
the ordering direction - offset
- limit
Produces
application/json
application/xml
com.matterial.mtr.api.object.ListResult<Comment>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/comment?contactId=2&count=true
Create comment
URLPOST <application-url>/api/comment
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Comment
Produces
application/json
application/xml
com.matterial.mtr.api.object.Comment (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
COMMENT
SamplePOST http://localhost:8080/mtr-backend/api/comment
Update comment
URLPUT <application-url>/api/comment/<commentId>
Path parameter
- commentId
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Comment
Produces
application/json
application/xml
com.matterial.mtr.api.object.Comment (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
COMMENT
SamplePUT http://localhost:8080/mtr-backend/api/comment/8
Remove comment
URLDELETE <application-url>/api/comment/<commentId>
Path parameter
- commentId
Produces
text/plain
Integer - count of removed
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
COMMENT
SampleDELETE http://localhost:8080/mtr-backend/api/comment/9