You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Francesco Chicchiriccò (JIRA)" <ji...@apache.org> on 2015/09/16 08:32:46 UTC

[jira] [Created] (SYNCOPE-695) REST endpoints for attribute CRUD

Francesco Chicchiriccò created SYNCOPE-695:
----------------------------------------------

             Summary: REST endpoints for attribute CRUD
                 Key: SYNCOPE-695
                 URL: https://issues.apache.org/jira/browse/SYNCOPE-695
             Project: Syncope
          Issue Type: New Feature
            Reporter: Francesco Chicchiriccò
             Fix For: 2.0.0


Currently AnyService (and its derivative, providing REST services for users, groups and any objects) defines CRUD methods for the whole entities, e.g. allows to create, update, read and delete users, groups and any objects.

Inspired by the OData standard, new REST endpoints can be defined so that the following calls are allowed.

{code}
GET /users/157/PLAIN
{code}

Returns the list of plain attributes for user 157 ({{DERIVED}} and {{VIRTUAL}} can also be used) with values.

{code}
GET /users/157/PLAIN/firstname
{code}

Returns the list of values for the {{firstname}} plain attribute of user 157.

{code}
PUT /users/157/PLAIN/firstname
{code}

Adds or replaces the list of values for the {{firstname}} plain attribute of user 157.

{code}
DELETE /users/157/PLAIN/firstname
{code}

Removes the plain attribute {{firstname}} from user 157.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)