[
http://opencast.jira.com/browse/MH-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25730#comment-25730
]
Josh Holtzman commented on MH-6952:
-----------------------------------
> using a dynamically obtained value is better than hardcoding that in the
> annotation
I agree.
> Josh; thoughts? A static example wouldn't be ideal, but other than calling
> the service I'm not sure how this would be done.
Some services provide utilities to serialize objects, so in the constructor we
could do something like this:
String xmlExample = null;
public MyService() {
MyObject o = new MyObject("something");
o.addThing("something else");
xmlExample = MyObjectParser.toXml();
}
Again, this can be bolted on later, so no need to stop progress.
> What should I do for this table of contents?
Yes, please feel free to copy the code used by the welcome page, since it
provides a good start. We can do a lot more in a true table of contents than
we'd want to do on the welcome page, including folding/unfolding, searching by
types of endpoint (e.g. name=* where consumes=json). I'm not advocating that
we spend time on these kinds of things, but I do think it makes sense to have a
separate table of contents apart from the welcome page, even if it starts off
just being a copy.
> Update the ingest rest endpoint to use these new annotations as an example
> --------------------------------------------------------------------------
>
> Key: MH-6952
> URL: http://opencast.jira.com/browse/MH-6952
> Project: Matterhorn Project
> Issue Type: Sub-Task
> Components: Administrative Tools, Architecture & Services
> Affects Versions: 1.2
> Reporter: Christopher Brooks
> Assignee: Kenneth Lui
> Fix For: 1.2
>
> Attachments: mh6952v1.diff, mh6952v2.diff
>
>
> Kenneth, check out the ingest service endpoints and modify them to use this
> new code. This can serve as a demonstration of what we would like, and would
> give a nice contextualized example of how things should work.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________