Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for returning custom response headers from a list service #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bbellsct
Copy link

@bbellsct bbellsct commented Jun 8, 2015

We want to return some metadata about the response of a list service request in the response headers, much in the same way that totalCount and other paging parameters are returned. We've modified the RestfulApiController to check if an httpResponseHeaders property exists on the object returned by the list. If that property exists and is a map, we generate the response headers directly from that map. For simplicity, we incorporated an optional responseHeaders as part of the PagedResultArrayList object in which to pass the map to the controller. This branch is based off the 0.8.0 tag as that is the version of the restful-api currently in use by our project.

@bbellsct bbellsct changed the title Add support for returning service-specific response headers from a li… Add support for returning custom response headers from a list service Jun 8, 2015
@bbellsct bbellsct closed this Jun 17, 2015
@bbellsct bbellsct reopened this Jun 17, 2015
@bbellsct
Copy link
Author

I merged master into my list-response-headers branch.

@bbellsct bbellsct closed this Jun 17, 2015
@bbellsct bbellsct reopened this Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant