-
Notifications
You must be signed in to change notification settings - Fork 20
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 a call to a milliner versioning endpoint for media #70
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"@context":"https:\/\/www.w3.org\/ns\/activitystreams", | ||
"actor":{ | ||
"type":"Person", | ||
"id":"urn:uuid:9029a0c0-d845-4ddd-864c-2198d45839da", | ||
"url":[ | ||
{ | ||
"name":"Canonical", | ||
"type":"Link", | ||
"href":"http:\/\/localhost:8000\/user\/1", | ||
"mediaType":"text\/html", | ||
"rel":"canonical" | ||
} | ||
] | ||
}, | ||
"object":{ | ||
"id":"urn:uuid:4f528a92-4be2-4a9d-85e6-c5f4d36b1bce", | ||
"url":[ | ||
{ | ||
"name":"Canonical", | ||
"type":"Link", | ||
"href":"http:\/\/localhost:8000\/media\/7", | ||
"mediaType":"text\/html", | ||
"rel":"canonical" | ||
}, | ||
{ | ||
"name":"JSON", | ||
"type":"Link", | ||
"href":"http:\/\/localhost:8000\/media\/7?_format=json", | ||
"mediaType":"application\/json", | ||
"rel":"alternate" | ||
}, | ||
{ | ||
"name":"JSONLD", | ||
"type":"Link", | ||
"href":"http:\/\/localhost:8000\/media\/7?_format=jsonld", | ||
"mediaType":"application\/ld+json", | ||
"rel":"alternate" | ||
} | ||
], | ||
"isNewVersion":"true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, shoulda caught this sooner, but "isNewVersion" should be down in the "attachment" section under "content" if we want to follow the schema to the letter of the law. Not the end of the world (thank goodness the AS2 police aren't a thing), but we should probably get in alignment with the ontology. I suppose this would affect node versioning as well. It's probably a lot to address here and now, so I'll make a ticket. There'll have to be work done in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah ok, i was unaware of the schema for this |
||
}, | ||
"type":"Update", | ||
"summary":"Update a Media", | ||
"target":"http://localhost:8080/fcrepo/rest/media", | ||
"attachment":{ | ||
"type":"Object", | ||
"content":{ | ||
"source_field":"field_media_image" | ||
}, | ||
"mediaType":"application\/json" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funky indentation here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean because i put 'getMillinerBaseUrl....' on the next line?
i'm pretty sure it was throwing an error about the line being too long.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was expecting the ending parenthesis before
.endChoice
to be aligned with.toD
. Maybe that's just me.No biggie though. It passes codestyle checks so I'm fine pulling in this now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i can fix it