WhiteHouse / api-standards

3.08k stars 901 forks source link

Email confirmation RESTful api #56

Open hsklia opened 5 years ago

hsklia commented 5 years ago

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}

kinlane commented 5 years ago

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....