Rest design patterns

Hi you all,

I am about to start a project for our JCommunicator device.

https://jcommunicator.dev.java.net/

We thought about starting with a Rest approach because it is lightweight and because it can be nicelly couple with AJAX applications.

The problem is that we dont have enought experience on developping web applications following a REST approach. This is a sample of our URL pattern:

GET

/jcommunicator/users -- Retrives all users

/jcommunicator/users?<xml string> -- A get with parameters

POST

/jcommunicator/users?<xml string> -- Insert a new record

PUT

/jcommunicator/users/1?<xml string> -- Edit an user

DELETE

/jcommunicator/users/1 -- Delete user with id 1

/jcommunicator/users?<xml string> -- Delete users that match the criteria.

What do you guys think of this?

Thanks,

MeTitus

[980 byte] By [Me_Titusa] at [2007-11-27 1:46:32]
# 1

Forgot the param word.

GET

/jcommunicator/users -- Retrives all users

/jcommunicator/users?param<xml string> -- A get with

parameters

POST

/jcommunicator/users?param<xml string> -- Insert a new

record

PUT

/jcommunicator/users/1?param<xml string> -- Edit an user

DELETE

/jcommunicator/users/1 -- Delete user with id 1

/jcommunicator/users?param<xml string> -- Delete users

that match the criteria.

MeTitus

Me_Titusa at 2007-7-12 1:08:15 > top of Java-index,Other Topics,Patterns & OO Design...