Re: [Dspace-tech] Examples of REST-API POST/PUT requests using cURL

2015-02-04 Thread Peter Dietz
I was working on handling the responses, putting it into a bash variable, but ran into an issue with the login script where I needed to store the auth token and the http response, and things got complicated. The run-all-tests didn't want additional output (http code) from login, and only the token,

Re: [Dspace-tech] Examples of REST-API POST/PUT requests using cURL

2015-02-04 Thread Bruno Zanette
Hey Peter, I'm glad you liked it! I've just cloned your repository (https://github.com/BrunoNZ/dspace-rest-requests), because i'm not very familiar with "high-end" Git commands to fork from another server. Also doing it like this come with the bonus of your changes! About the scripts, i forgot t

Re: [Dspace-tech] Examples of REST-API POST/PUT requests using cURL

2015-02-04 Thread Peter Dietz
Hi Bruno, This is a very handy tool to test the REST API. And by building the CURL requests, it is somehow documenting the required data. Great work. For collaboration purposes, it would be helpful if you published a clone of your repository to GitHub, then I could send you a pull request. I hav

[Dspace-tech] Examples of REST-API POST/PUT requests using cURL

2015-01-29 Thread Bruno Zanette
Hey, I was doing some tests to prepare myself to write API's documentation, and to make it easier i've wrote some short scripts that implement all POST/PUT requests. It contains a script to execute each request, and descriptor files that describes each request (Verb, Action, and the request form i