Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

add account manager API #2

Closed
MartijnR opened this issue Aug 20, 2014 · 3 comments
Closed

add account manager API #2

MartijnR opened this issue Aug 20, 2014 · 3 comments

Comments

@MartijnR
Copy link

see email

@MartijnR
Copy link
Author

See https://github.com/OpenClinica/enketo-express-oc/blob/feature/account-manager/Accounts%20API%20Documentation.md

Maybe it would be better to use the same JSON property names in the response as those send as API request parameters. So the response would become:

{
   "server_url": "https://oc1.com/study",
   "api_key": "abcde"
}

@MartijnR MartijnR changed the title add account manager api add account manager API Aug 27, 2014
@kkrumlian
Copy link

https://github.com/OpenClinica/enketo-express-oc/blob/feature/account manager/Accounts%20API%20Documentation.md Looks good
To clarify the POST example a bit more server_url would include the Study correct ?

try curl --user ocrocks: -d "server_url=https://octest.com/STUDY&api_key=123" http://localhost:8005/accounts/api/v1/account

@MartijnR
Copy link
Author

Yes, exactly. Will edit that.

I'll squash this branch. It's ready to start testing with!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants