On 11-09-16 03:55 AM, Pawel Fic wrote:
> Hi,
> I am integrating CA with Matterhorn, I am also putting up a spec for REST
> endpoints for version 1.2 (once I will finish it I can post it).
>
> I am trying to register CA with:
> POST /agents/{name}/configuration
>
> I am looking for somebody who was designing/implementing this endpoint, to
> talk about details. That would be me :) > I was looking at: > /docs.html?path=/capture-admin > it has two fields: > > "name", and "configuration". > > > Here are few questions (Of course I am using latest Matterhorn 1.2): > > > 1. > What characters are allowed in Capture Agent Name. > For example I have CA named: "Engineering Room", I register it as > "engineering". Of course it is workaround, since agent's id is "Engineering > Room". > > I have noticed that right now they are limited by URL. There are no deliberate limits, except for those imposed by the parameter being in the URL. I don't believe we've tested it with anything other than fairly basic characters however, so feel free to file bugs if you find it crashes out with (for example) Unicode. > > 2. > Capabilities/configuration. What is this field, and how are the values > processed later in Matterhorn Server. > With 1.1 I tried: > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > <properties> > > <comment>Capabilities for the agent<comment> > <entry key="capture.device.timezone.offset">120<entry> > <entry key="capture.device.timezone">Europe/Warsaw</entry> > </properties> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > it worked. > But I would like to use this field just at is supposed to be used. That's how it is supposed to be used. The data sent to the core from the CA is a serialized version (.storeToXML/2) of a normal Java properties file. Does that no longer work? > > > 3. > I think the test form at /docs.html?path=/capture-admin not works properly. I > was unable to use it (I had to wrote my own script to register the agent). "POST /agents/{name}" works for me in 1.2.0. Which endpoint specifically? G > I want to fix it, test it and commit it - can I get some clues from somebody > that implemented this test form/endpoint description. > > > > -Pawel > > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
