JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources

Accept multiple types at one endpoint?

Open
#1,087 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.3k
Forks
546
PR merge metrics
No merged PRs in 30d

Description

Is it possible to accept multiple types at the same endpoint and use the corresponding Resource? i.e. multiple STI variants all using the same controller rather than making a controller for each?

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Start by tracing how the Rails library maps an endpoint to a controller and Resource, then examine how STI variants are currently handled. The work would be complete when the supported behavior for multiple types at one endpoint is defined and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.