Skip to content

RESTFUL URL Endpoints need re-thinking #127

Description

@bthornton505

I was talking to Hunter about the current backend endpoints and I feel that we could have them be more readable. I realize this might be a nit-pick but it could make a big difference for consuming the api properly and having RESTFUL endpoints.

Here's an example of what they should look like:

gsndb/user/1/students

This url expresses that we should be on a page that shows user 1's students. Specifically all students associated with user 1's account. If we wanted to navigate to another user's students we should be able to change the primary key to say user/5/students in the url and be redirected to their students. Whether we want that functionality is another question. But our endpoints should be very explicit in where we are currently located in the application.

If you are unsure about my suggestion then I would be happy to talk about it over discord/github/in-person.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions