For next release (v1.0.0) the route will be completely rewritten (but pay attention: we will always be inv1 of our routes). For example, in current version the routes to add, update or delete campaigns are defined in public/global routes.
So instead of that we will separate some routes to be under /v1/me prefix and keep only the routes /v1/campaigns, /v1/donors, /v1/campaigns/{id}/comments and other routes non related to user directly.
Add new endpoints related to User (loggedin)
[x] GET:v1/me (Get information about the logged User)
[ ] GET:v1/me/followers (User followers)
[ ] GET:v1/me/following (others user that the current User is following)
[x] GET:v1/me/donations (User's donations)
[ ] GET:v1/me/donated (User's received donations)
[x] GET: v1/me/campaigns (Get all campaigns created by the User)
[x] POST: v1/me/campaigns (Add a new campaign)
[x] PUT: v1/me/campaigns/{id} (Update a campaign that User owns)
[x] DELETE: v1/me/campaigns/{id} (Delete a campaign that User owns)
[x] GET:v1/me/notifications (Check all User notifications, read and unread)
[x] GET:v1/bloodtypes (Returns all bloodtypes we have in our database)
Authentication
[x] v1/auth/logout (Invalidate the token and destroy's User session)
[x] v1/auth/password/recover (Ask for a link to reset a password)
[ ] v1/auth/password/reset/{token} (After the User receives the link in his inbox he check if he can change the passwd)
For next release (
v1.0.0
) the route will be completely rewritten (but pay attention: we will always be inv1
of our routes). For example, in current version the routes to add, update or delete campaigns are defined in public/global routes. So instead of that we will separate some routes to be under/v1/me
prefix and keep only the routes/v1/campaigns
,/v1/donors
,/v1/campaigns/{id}/comments
and other routes non related to user directly.Add new endpoints related to User (
loggedin
)v1/me
(Get information about the logged User)v1/me/followers
(User followers)v1/me/following
(others user that the current User is following)v1/me/donations
(User's donations)v1/me/donated
(User's received donations)v1/me/campaigns
(Get all campaigns created by the User)v1/me/campaigns
(Add a new campaign)v1/me/campaigns/{id}
(Update a campaign that User owns)v1/me/campaigns/{id}
(Delete a campaign that User owns)v1/me/notifications
(Check all User notifications,read
andunread
)v1/bloodtypes
(Returns all bloodtypes we have in our database)Authentication
v1/auth/logout
(Invalidate the token and destroy'sUser
session)v1/auth/password/recover
(Ask for a link to reset a password)v1/auth/password/reset/{token}
(After the User receives the link in his inbox he check if he can change thepasswd
)This
issue
/task is part of #38