Account Management

POST : account creation

A POST to this abstract account resource creates an account:

https://dydra.com/system/accounts

Headers

Content-Type: application/json

Content

{"account": {"name": "<new account name>"} }

Response

HTTP No Content upon successful completion

DELETE : account deletion

A DELETE to the specific resource deletes the respective account

https://dydra.com/system/accounts/<account>

Response

HTTP No Content upon successful completion

GET : account catalog

https://dydra.com/system/accounts

Respsonse

Returns the names of the accounts to which the current user has access.

GET : account resources

https://dydra.com/system/accounts/<account>

Headers

Content-Type: application/json

Response

Returns a JSON model which describes the account resources.

  • location : the service http resource locator

  • identifier : the abstract url to identify account metadata

  • repositories : an array of account repository metadata

{"@type": "account",
 "name": "account name",
 "location": "http://specific-host.com/test",
 "identifier": "http://specific-host.com/system/accounts/test",
 "repositories": [  ]
 }

GET : account configuration

https://dydra.com/system/accounts/<account>/configuration

Headers

Accept: application/json

Response

Returns a JSON model which captures the account configuration and owner description. This includes read-only and modifiable fields.

{"@type": "urn:dydra:Account",
 "accountName": "test",
 "account_of": "http://dydra.com/users/test",
 "has_owner": "http://dydra.com/users/test",
 "uuid": "urn:uuid:cc39c758-1c85-3240-9afc-78c540a8c3b5",
 "familyName": "Testing",
 "email": "meta@test.unexample",
 "firstName": "Meta",
 "fullName": "Meta Testing",
 "accessToken": "deadbeefcafebabie",
 "id": "http://dydra.com/test"
 }

POST : account configuration

Modifies the account configuration according to the content of a JSON model.

https://dydra.com/system/accounts/<account>/configuration

Headers

Content-Type: application/json

Content

Requires a JSON object with the possible fields. This includes modifiable fields only.

  • email

  • fullName

  • accessToken

{"email": "meta@test.unexample",
 "fullName": "Meta Testing",
 "accessToken": "deadbeefcafebabie"
 }

Response

HTTP No Content upon successful completion

GET : account authorization

https://dydra.com/system/accounts/<account>/authorization

Headers

Accept: application/json

POST : account authorization

https://dydra.com/system/accounts/<account>/authorization

Headers

Content-Type: application/json