SciCatProject / SciCatProject/backend

Create endpoint to perform actions

Open
#636 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.