spring-projects / spring-projects/spring-hateoas

Affordances using HTTP GET excluded from the output

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

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

This is in reference to https://stackoverflow.com/questions/68903785/spring-hateoas-hal-forms-does-not-add-current-get-endpoint-to-the-template-secti and I just ran into the same problem.

The spring docu [1], code [2] & spec [3] don't line up. Not sure if it's a bug or just a documentation error.

The spec seems to say GET should be allowed [3]

The HTTP method the client SHOULD use when the service request. Any valid HTTP method is allowed. This is a REQUIRED element. If the value is empty or is not understood by the client, the value MUST be treated as an HTTP GET.

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

Start with src/main/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsTemplateBuilder.java around line 66, then compare its behavior with the linked Spring HATEOAS documentation and HAL Forms specification. Reproduce the output for an affordance using HTTP GET and determine whether the implementation or documentation should change; done means the behavior and documented/spec-defined method handling agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.