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 categorytype by id
URLGET <application-url>/api/category/type/<categoryTypeId>
Path parameter
- categoryTypeId
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Produces
application/json
application/xml
com.matterial.mtr.api.object.CategoryType
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category/type/2?languageKey=de
Get categorytypes
URLGET <application-url>/api/category/type
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language - categoryTypeId
default: 0 - 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” - orderBy
possible:
id
name
type
default: type
the order by - orderDir
possible: asc, desc
default: asc
the ordering direction
Produces
application/json
application/xml
List<com.matterial.mtr.api.object.CategoryType>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/category/type?languageKey=de
Create categorytype
URLPOST <application-url>/api/category/type
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Consumes
application/json
application/xml
com.matterial.mtr.api.object.CategoryType
Produces
application/json
application/xml
com.matterial.mtr.api.object.CategoryType (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SamplePOST http://localhost:8080/mtr-backend/api/category/type
Update categorytype
URLPUT <application-url>/api/category/type/<categoryTypeId>
Query parameter
- languageKey
possible: de, en, fr, it, …
default: de
The requested language
Path parameter
- categoryTypeId
Consumes
application/json
application/xml
com.matterial.mtr.api.object.CategoryType
Produces
application/json
application/xml
com.matterial.mtr.api.object.CategoryType (id only)
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_CATEGORY
SamplePUT http://localhost:8080/mtr-backend/api/category/type/4
Remove categorytype
You cannot remove CategoryTypes that have related Categories! This will return in StatusCode CATEGORY_TYPE_IN_USE = 200 and HTTP-Status BAD REQUEST.
URLDELETE <application-url>/api/category/type/<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/categorytype/4