The endpoints I'm planning to use in my document taking app are listed below. I'm currently debating with myself whether I should include /users/{id}/documents or only /documents. /users/{id}/documents would mean that my routes are very nested and it would be harder to maintain.
So what do you think, does my api design look good, or is there anything you would change?
GET /documents
POST /documents/new
PUT /documents/{id}/save
DELETE /documents/{id}/delete
PUT /documents/{id}/share
POST /auth/signup
POST /auth/login
GET /auth/loggedin
POST /auth/logout
PUT /users/{id}/password/update
PUT /users/{id}/email/update
PUT /users/{id}/username/update