[MGNLRESTCL-51] More dynamic usage of REST Client  Created: 06/May/19  Updated: 20/Feb/20  Resolved: 20/Feb/20

Status: Closed
Project: REST Client
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
is superseded by MGNLRESTCL-68 RestClient has ability to add query p... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: Easy Outbound REST

 Description   

As a developer, I want to customize requests made with a REST Cient when I use it, so that I can accomplish my work easily without changing a REST client. 

In the current REST client, one defines specific java methods on the client, which can take specific properties. Only these defined methods are available to the consumers. However we want something more flexible that allows any code in the system to use the clients and take advantage of the credentials, token, url, etc that are configured on them. So it should be possible for a consumer to use those stored configurations, but dynamically supply any of their own needed options, like querystring parameters or headers.

Example:

From a template, I want to request a set of flights from an airport webservice: flights departing between two times, stored by airline. To do this I can use the configured Airport Rest Cient, and supply a custom querystring with the filter and ordering information.

Acceptance Criteria:

  • Supply custom request VERB
  • Supply custom request Querystring
  • Supply custom request Body
  • Supply a custom URL segment
  • Supply custom headers.

TODO: This ticket needs to be updated by PM based on the current state.



 Comments   
Comment by Christopher Zimmermann [ 20/Feb/20 ]

Superceeded by https://jira.magnolia-cms.com/browse/MGNLRESTCL-68

Generated at Mon Feb 12 10:42:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.