Improve response for create calls

Open
#128 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by tracing how create calls handle the 201 response and Location header when followLocation is omitted, then compare that path with the automatic Get path. The work is done when the non-following path returns an empty resource containing the created resource ID, while the existing followLocation behavior remains intact.

Written by the indexing model from the issue text.

Description

enhancement

Create calls in Kill Bill typically return 201 with a Location header. When followLocation is specified, there is Get to automatically fetch the resource; however, when followLocation is not specified, there no response returned and no easy way to even get the ID of the resource.

We would like to at least return an empty resource with the ID to make it easy for the caller.

Dominant language
Java
Stars
35
Forks
68
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from killbill/killbill-client-java

All issues in killbill/killbill-client-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.