PersonRoles

(implementation of PersonRole entity)

Provides following method for API calls:

Create

URL:

/api/v1/{format}/personroles

Method:

POST

Parameters request:

Object< PersonRole >

Parameters response:

Object

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

Delete

URL:

/api/v1/{format}/personroles/{id}

Method:

DELETE

Parameters request:

null

Parameters response:

Object

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

DeleteByIds

URL:

/api/v1/{format}/personroles

Method:

DELETE

Parameters request:

Url parameters: ids

Parameters response:

Array

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

Get

URL:

/api/v1/{format}/personroles/{id}

Method:

GET

Parameters request:

null

Parameters response:

Object

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

GetAll

URL:

/api/v1/{format}/personroles

Method:

GET

Parameters request:

null

Parameters response:

Array

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

SaveAll

URL:

/api/v1/{format}/personroles/saveall

Method:

POST

Parameters request:

Array< PersonRole >

Parameters response:

Array

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

SaveAllAndReturnIds

URL:

/api/v1/{format}/personroles/saveall

Method:

POST

Parameters request:

Url parameters: full

Array< PersonRole >

Parameters response:

Array

Description:
ARRAY<NUMBER>

SearchFirst

URL:

/api/v1/{format}/personroles/search/first

Method:

POST

Parameters request:

Parameters response:

Object

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)

Update

URL:

/api/v1/{format}/personroles/{id}

Method:

PUT

Parameters request:

Object< PersonRole >

Parameters response:

Object

Description:

  1. person(OBJECT< Person >)
  2. role(OBJECT< WorkRole >)
  3. school(OBJECT< School >)
  4. school_class(OBJECT< SchoolClass >)
  5. date_from(NUMBER(Date representation wrapped))
  6. date_to(NUMBER(Date representation wrapped))
  7. id(NUMBER)