kowainik / kowainik/issue-wanted

Endpoint should return non-polymorphic data types

Open
#145 2 comments 0 reactions 0 assignees View on GitHub
api backend
Dominant language
Haskell
Stars
60
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Currently, it returns `WithId x`. It is not possible to work with this on the frontend. I propose that every response should have its own data type, like `IssuesResponse` which would not have any parameters.

This issue is the blocker for further frontend work at the moment.

Contributor guide

Open the contributing guide

Research direction

Start by locating the endpoint that currently returns `WithId x` and inspect how its response is consumed by the frontend. Determine the response types needed for each endpoint, then verify that the affected frontend work can consume them without polymorphic parameters; the issue provides no file or test names.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
api, 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.