Forums / Developer / REST-les Module to query and return Object-Attributes

REST-les Module to query and return Object-Attributes

Author Message

Daniel Scheiner

Friday 24 November 2006 3:12:07 am

Hi!

I want to build a module that i can access and pass a variable to via URL like so:

http://www.test.com/module/variable

The module should then access the database and return the data (object-attributes like name, etc.).

Right now I am trying to figure out the best way to return the data, i.e. format and way of transport as I am calling the module from a Java-Application.

Any input would be greatly appreciated! =)

Kristian Hole

Friday 24 November 2006 8:22:07 am

Hi Daniel,

You can do this by creating an eZ publish module.

Reference:
http://ez.no/products/ez_publish/documentation/development/extensions/module/hello_world
http://ez.no/products/ez_publish/documentation/development/extensions/building_an_ez_publish_module
(You do not need the fetch function here)
http://ez.no/community/contribs/applications/extension_manager

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute