#919 Future-proof REST method signatures
Closed: migrated 3 years ago by dmoluguw. Opened 10 years ago by edewata.

Some REST methods are defined using explicit list of parameters:

public Response findUsers(
    @QueryParam("filter") String filter,
    @QueryParam("start") String start,
    @QueryParam("size") String size);

If a new parameter is added, the method signature will have to change.

If possible, it would be better to use a request object and pass the query parameters as fields in that object:

public Response findUsers(FindUserRequest request);

Per CS/DS Meeting on 3/24/2014.

Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1486

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata