Scoped Resources and Profiles/Albums
JSH32 opened this issue · 0 comments
JSH32 commented
Scoped resources
- Admins may access all resources.
- Users may access other user's resources unless otherwise stated by the specific route.
- Listing/querying operations must be nested under a
/user/{user_id}
Profiles/Albums
- New
albums
table withname
,id
,public
. - Modify file with
public
,album_id
(optional). - Visible albums will show on user's profile in an ordered list/collection.
- From public view, only
public
uploads will show.
- From public view, only
- When uploading a file, an optional
public
andalbum_id
parameter can be specified- If
public
is not specified, it will use thepublic
on thealbum_id
provided - If neither parameter is provided, default to
false
(private).
- If
- From an outsiders viewpoint, only public uploads will show.
- On top of the user's profile page will be a list of all public albums, below will be a paginatable list of all public uploads (with viewable information).
- Clicking on an album expands to album view.
- Default album view (none selected) will show all images ordered by query parameters.
- Allow ordering by
name
with a LIKE query andupload_date
andsize
with up/down arrow toggles.