Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage Users: Rest Contraints for API Endpoints #6

Open
jpdevries opened this issue Aug 6, 2016 · 0 comments
Open

Manage Users: Rest Contraints for API Endpoints #6

jpdevries opened this issue Aug 6, 2016 · 0 comments

Comments

@jpdevries
Copy link
Owner

So I just realized the endpoints for another concept I did don’t follow REST constraints, because they have verbs and stuff. I just took the sync endpoints and prepended /api to them.

var USERS_ACTIVATE = '/users/activate/';
var USERS_DEACTIVATE = '/users/deactivate/';
var USER_DELETE = '/user/delete/';
var USER_REMOVE = '/user/remove/';
var USER_REMOVE_FROM_GROUP = `${USER_REMOVE}group/`;
var USERS_DELETE = '/users/delete/';
var USER_UPDATE = '/user/update';
var USER_GROUPS = '/user/groups/';
var API = '/api';

I see how USER_DELETE could be /users/ with a DELETE method, but what about things like USERS_ACTIVATE? Only thing I can think of is hit /users/ but with a parameter that tells the server what to do with the user, rather than that being in the URL

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

No branches or pull requests

1 participant