Validation of request entities
Werner Donné <[email protected]> Wed, 22 Mar 2006 10:34:34 +0100
| Newsgroups | gmane.ietf.deltav |
|---|---|
| Organization | Re BVBA |
| Message-ID | <[email protected]> |
Hi, In a versioning repository it may be required to validate the request entity before updating a version. This can be as simple as structural validation or application-specific validation rules may be implemented. When validation errors are found it is not sufficient to just return a status-code. In order for the user to learn where the problems exactly are, the repository should be able to return the request entity with annotations about the errors. A possible solution is to give the POST method similar additional semantics as the PUT method. Its response entity could contain the annotated document. Regards, Werner. -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: [email protected]