WhiteHouse/api-standards

Email confirmation RESTful api

Opened this issue · 1 comments

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?

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