Email confirmation RESTful api
Opened this issue · 1 comments
hsklia commented
I'm trying to create a new endpoint for confirming email after registering new user but I doubt if it's right or not?
Here is what I have in my mind :
/users/{id}/confirmations/{token}
- "confirmation" or "confirmations" ?
- When the endpoint is a resource? is "confirmation" a resource?
kinlane commented
confirmations.
I would consider confirmations a resource. You can POST new one, and you can GET the details of one at any point in the future.
Confirmations are a resource on their own, as well as a sub-resource of users.
Hope that helps you in your journey....