Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoped Resources and Profiles/Albums #29

Open
JSH32 opened this issue Sep 22, 2022 · 0 comments
Open

Scoped Resources and Profiles/Albums #29

JSH32 opened this issue Sep 22, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JSH32
Copy link
Owner

JSH32 commented Sep 22, 2022

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 with name, 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.
  • When uploading a file, an optional public and album_id parameter can be specified
    • If public is not specified, it will use the public on the album_id provided
    • If neither parameter is provided, default to false (private).
  • 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 and upload_date and size with up/down arrow toggles.
@JSH32 JSH32 self-assigned this Sep 22, 2022
@JSH32 JSH32 added the enhancement New feature or request label Sep 22, 2022
@JSH32 JSH32 changed the title Profiles/Albums Profiles/Albums and scoped resources Nov 21, 2022
@JSH32 JSH32 changed the title Profiles/Albums and scoped resources Scoped Resources and Profiles/Albums Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant