From: Robert M. <ro...@cs...> - 2012-05-08 04:29:59
|
Since I missed it earlier, an "empty" response looks like this: URL: http://localhost:9998/grailrest/snapshot/?uri=non.existent Response: [] On 05/08/2012 12:22 AM, Robert Moore wrote: > Following-up on my earlier email, a minor tweak in the URI: > > The snapshot URL: > http://localhost:9998/grailrest/snapshot/?uri=core.3.anchor.wifi.receiver.060B6BD8.*&attribute=location.xoffset×tamp=1333256400000 > > Returns: > [{"attributes":[{"attributeName":"location.xoffset","origin":"romoore","creationDate":1332887102428,"expirationDate":0,"data":"69.5"}],"uri":"core.3.anchor.wifi.receiver.060B6BD8AED6"},{"attributes":[{"attributeName":"location.xoffset","origin":"romoore","creationDate":1332886618186,"expirationDate":0,"data":"69.0"}],"uri":"core.3.anchor.wifi.receiver.060B6BD8AED5"}] > > The range request URL: > http://localhost:9998/grailrest/range/?uri=ee.*&start=0&end=1336453781000&attribute=location.xoffset > > Returns: > [{"attributes":[{"attributeName":"location.xoffset","origin":"romoore","creationDate":1335564959603,"expirationDate":1335565050704,"data":"1600.0"},{"attributeName":"location.xoffset","origin":"romoore","creationDate":1335565050704,"expirationDate":1335625674435,"data":"1550.0"},{"attributeName":"location.xoffset","origin":"romoore","creationDate":1335625674435,"expirationDate":1335625685412,"data":"1500.0"},{"attributeName":"location.xoffset","origin":"romoore","creationDate":1335625685412,"expirationDate":1335625714146,"data":"1450.0"},{"attributeName":"location.xoffset","origin":"romoore","creationDate":1335625714146,"expirationDate":0,"data":"1425.0"}],"uri":"ee.chair.105"}] > > What does everyone think? I have it in a private repo on bitbucket > right now, I'll push to Grail later this week after I get some feedback. > > --Rob > > On 05/07/2012 11:29 PM, Robert Moore wrote: >> Hi GRAIL developers, >> >> I'm putting together a rather quick-and-dirty RESTful interface for >> GRAIL that produces JSON output. Here's the first example I have, which >> is a simple URI snapshot search: >> >> http://localhost:9998/snapshot?uri=core.2 >> >> [{"attributes":[{"attributeName":"creation","origin":"test.solver","creationDate":1328650583130,"expirationDate":0,"data":""},{"attributeName":"dimension.width","origin":"test.solver","creationDate":1331156841221,"expirationDate":0,"data":"200.0"},{"attributeName":"dimension.height","origin":"test.solver","creationDate":1331156855931,"expirationDate":0,"data":"88.0"},{"attributeName":"dimension.units","origin":"test.solver","creationDate":1331157674031,"expirationDate":0,"data":"feet"},{"attributeName":"image.url","origin":"test.solver","creationDate":1331161316404,"expirationDate":0,"data":"http://eden.rutgers.edu/~romoore/core2.jpg"}],"uri":"core.2"}] >> >> >> Just a taste of the JSON being returned. Feel free to comment on how we >> should handle things. Obviously I'll be creating more complex URL >> parsing, including support for POST and perhaps even session management >> later on. >> >> What does everyone think? >> >> --Rob >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Grailrtls-developers mailing list >> Gra...@li... >> https://lists.sourceforge.net/lists/listinfo/grailrtls-developers > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Grailrtls-developers mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/grailrtls-developers |