SciCatProject / SciCatProject/backend
Create endpoint to perform actions
Open
Nobody has claimed this yet.
enhancement
feature
help wanted
Release 4.6
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 37
- Avg merge
- 17h 32m
- Merged PRs (30d)
- 38
Description
Summary
We need to create the needed endpoint to be able to perform actions defined in frontend issue #1150
As a first draft, we need the following endpoint:
- POST actions -> cretae the specific action and is accessible to authenticated user and only the datasets accessible to them
- GET actions -> list of actions initiated by the authenticated user that have logs
- GET actions/user/{id} => list of actions initiated by user with id. This endpoint is accessible only to admins
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading frontend issue #1150 and the existing backend route patterns for authenticated and admin-only endpoints. Define the POST actions route and both GET routes, including dataset access and action-log requirements; done means each route enforces the stated permissions and returns the requested action lists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication, authorization, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100