I have checked in a tool for testing that the API conforms to the
specification. It's called rest_test and it's in trunk/buildservice/docs/api.
Instructions how to use it are in
trunk/buildservice/docs/api/README.rest_test. For testing the openSUSE API
you call it with "rest_test api.txt". You have to provide a file
"api.txt.test.config" with some login information (details are in the
README), otherwise all tests will fail with a 401.
The currently deployed API doesn't pass all tests, mainly because the response
to PUT operations doesn't adhere to the specified schema. This is fixed in
SVN and will become active with the next deploy of the frontend. If you parse
the XML returned as result of the PUT requests you probably will have to
adapt the client to the correct schema.
Cornelius Schumacher <cschum(a)suse.de>
Show replies by date