Content¶
{"account": {"name": "<new account name>"} }
A POST to this abstract account resource creates an account:
https://dydra.com/system/accounts
Content-Type: application/json
{"account": {"name": "<new account name>"} }
HTTP No Content upon successful completion
A DELETE to the specific resource deletes the respective account
https://dydra.com/system/accounts/<account>
HTTP No Content upon successful completion
https://dydra.com/system/accounts
Returns the names of the accounts to which the current user has access.
https://dydra.com/system/accounts/<account>
Content-Type: application/json
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": [ ]
}
https://dydra.com/system/accounts/<account>/configuration
Accept: application/json
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"
}
Modifies the account configuration according to the content of a JSON model.
https://dydra.com/system/accounts/<account>/configuration
Content-Type: application/json
Requires a JSON object with the possible fields. This includes modifiable fields only.
fullName
accessToken
{"email": "meta@test.unexample",
"fullName": "Meta Testing",
"accessToken": "deadbeefcafebabie"
}
HTTP No Content upon successful completion