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

ISSUE-149: Changed final response in Collection Service #152

Merged
merged 2 commits into from
Feb 19, 2016
Merged

ISSUE-149: Changed final response in Collection Service #152

merged 2 commits into from
Feb 19, 2016

Conversation

DiegoPino
Copy link
Contributor

See Issue #149

  • Moved islandora resource service /members link header to rel="hub" (this is the indirect container) using iana.org definitions http://www.iana.org/assignments/link-relations/link-relations.xhtml
  • Moved fedora REST's API location to rel="alternate", (this is the real path in Fedora4 world)
  • Moved the base landora resource service url for the newly created PCDM collection object to header "Location" (this is the actual collection object)
    and copied into body.

Moved islandora resource service /members link header to rel="member"
Moved fedora REST's API location to rel="alternate", moved the base
pcdm collection object's islandora resource service url to Location
header and body.
@DiegoPino DiegoPino added this to the Community Sprint - 04 milestone Feb 16, 2016
$putHeaders['Link'] = array('<'.$urlRoute.$tmpUuid.'/members>; rel="member"');
$putHeaders['Location'] = array($urlRoute.$tmpUuid);
//Should i care about the etag?
return new Response($putHeaders['Location'][0], 201, $putHeaders);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in should we create an etag here? Or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, we are returning the "etag" fedora4 gave us for the indirect container, but our response mutated to be a mixed thing of indirect and pcdm collection responses. So it's just a comment because i don't know what the use of stags during resource creation is (we are not caching this, etags make more sense when asking for resources). Anyway, i suppose @daniel-dgi will know better and remove my comments when moving towards a service provider

Changed rel="member" to rel="hub" using ianas's predefined vocal for
this.
@see http://www.iana.org/assignments/link-relations/link-relations.xhtml
ruebot added a commit that referenced this pull request Feb 19, 2016
ISSUE-149: Changed final response in Collection Service
@ruebot ruebot merged commit 238cfb4 into Islandora:sprint-002 Feb 19, 2016
@ruebot ruebot mentioned this pull request Feb 19, 2016
@DiegoPino
Copy link
Contributor Author

Coool

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.

2 participants