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 to change the IDs on each request. I was
testing it on my localhost server and picked some random
coll/comm/item to use as basis.

I've tried to implement a success/error feature when i was writting
"test_all_requests", but i was kinda running out of time because i had
to do some other things, and i couldn't figure out a easy way to do
it. I was hoping that i could use "$?" bash variable to do this, but
it doesn't work. I'll take a better look at it.

2015-02-04 13:09 GMT-02:00 Peter Dietz <pe...@longsight.com>:
> 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 have added a commit, which adds a config file to hold the REST URL, and
> fixed the XML endpoints.
> https://github.com/peterdietz/dspace-rest-requests
>
> It would be nice to have a little error/success report at the end, saying,
> your API was 10/10 successful. I've also tweaked some of the endpoints to
> work with a clean repository. Though I think one of the bitstreams still
> requires changing item/11 or bitstream/32, so lots of failures needed to get
> the counter up to there.
>
> ________________
> Peter Dietz
> Longsight
> www.longsight.com
> pe...@longsight.com
> p: 740-599-5005 x809
>
> On Thu, Jan 29, 2015 at 5:38 PM, Bruno Zanette <brunonzane...@gmail.com>
> wrote:
>>
>> 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 itself).
>>
>> It's not very useful but it may help people that are struggling to use
>> REST-API until the documentation is not ready.
>>
>> The files are stored at this Git project:
>> https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-requests
>>
>> --
>> Bruno Nocera Zanette
>> +55 41 9992-2508
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>



-- 
Bruno Nocera Zanette
+55 41 9992-2508

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to