REST - Document - AdditionalProperty

REST-Interface

Back to overview

Get additional property by id

URL
GET <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 fill AdditionalProperty.following for 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

Sample
GET http://localhost:8080/mtr-backend/api/document/additionalproperty/2?languageKey=en


Get additional properties

URL
GET <application-url>/api/document/additionalproperty

Query parameter

  • propertyType
    possible: 1, 2, 3, 4, 5
    The number of a known property-type:
    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 fill AdditionalProperty.following for 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

Sample
GET http://localhost:8080/mtr-backend/api/document/additionalproperty?propertyType=5


Create additional property

URL
POST <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

Sample
POST http://localhost:8080/mtr-backend/api/document/additionalproperty?languageKey=en


Update additional property

URL
PUT <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

Sample
PUT http://localhost:8080/mtr-backend/api/document/additionalproperty/4?languageKey=de


Remove additional property

URL
DELETE <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

Sample
DELETE http://localhost:8080/mtr-backend/api/document/additionalproperty/4


Is following (logged-in account follows an additional property)

URL
GET <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

Sample
GET http://localhost:8080/mtr-backend/api/document/additionalproperty/2/follow?languageKey=de


Follow additional property (logged-in account)

URL
PUT <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

Sample
PUT http://localhost:8080/mtr-backend/api/document/additionalproperty/2/follow?languageKey=de


Follow additional property (other account)

URL
PUT <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

Sample
PUT http://localhost:8080/mtr-backend/api/document/additionalproperty/2/follow/byaccount/3?languageKey=de


Unfollow additional property (logged-in account)

URL
PUT <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

Sample
PUT http://localhost:8080/mtr-backend/api/document/additionalproperty/2/unfollow?languageKey=de


Unfollow additional property (other account)

URL
PUT <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

Sample
PUT http://localhost:8080/mtr-backend/api/document/additionalproperty/2/unfollow/byaccount/3?languageKey=de

×