Bertrand Delacretaz wrote:
> On Mon, Jan 19, 2009 at 12:13 PM, Carsten Ziegeler <[email protected]> 
> wrote:
> 
>> Felix Meschberger wrote:
>>> ...Hmm, couldn't the console just set the response content type and the
>>> maven-sling-plugin verify that this content type actually indicates JSON...
> 
>> Yes, this would make the json handling more robust, good idea. But
>> overall we need to check the version of the console anyway I think. The
>> maven sling plugin requires new features (in the sense that the web
>> console allows new json get requests)....
> 
> And that might be the case in the future as well, so why not add an
> info resource URL to the console, that provides information about the
> console version, supported features etc?
> 
> I'm thinking of something like
> 
> http://localhost:8888/system/console/info.properties
> 
> which returns
> 
> console-version: 1.2.2
> installed-plugins: foo, bar
> 
> (or JSON format, whatever's most convenient)
> 
> We probably don't need installed-plugins right now, that's just an example.
> 
For the moment I don't think we have to go this far :)
The web console already supports getting information about a bundle as
json, so a
http://localhost:8888/system/console/bundles/{symbolicName}.json gives
you information about the bundle. By using the symbolic name for the
webconsole, you get the version. That's sufficient for now, I think.

Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to