Clone of: Bruno Nocera Zanette's https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-requests 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…
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 12 commits ahead of peterdietz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
requests
.gitignore
README
login.sh
logout.sh
send_file.sh
send_request.sh
test_all_requests.sh

README

==========================================================================
VERB  ACTION ------------------------------------> Request Descriptor File
==========================================================================

POST  /login ------------------------------------> ./login.sh [JSON Only]
POST  /logout -----------------------------------> ./logout.sh

POST  /communities -----------------------------> POST_new-communities.sh
POST  /communities/{communityId}/collections ---> POST_new-collections.sh
POST  /communities/{communityId}/communities ---> POST_new-subcommunities.sh
PUT   /communities/{communityId} ---------------> PUT_edit-communities.sh

POST  /collections/{collectionId}/items ------- > POST_new-items.sh
POST  /collections/find-collection
PUT   /collections/{collectionId} --------------> PUT_edit-collections.sh

POST  /items/find-by-metadata-field
POST  /items/{item id}/bitstreams --------------> UPLOAD_new-bitstreams.sh
POST  /items/{item id}/metadata ----------------> POST_add-items-metadata.sh [JSON Only]
PUT   /items/{item id}/metadata ----------------> PUT_edit-items-metadata.sh [JSON Only]

POST  /bitstreams/{bitstream id}/policy
PUT   /bitstreams/{bitstream id}/data ----------> UPLOAD_edit-bitstreams.sh
PUT   /bitstreams/{bitstream id} ---------------> PUT_edit-bitstreams.sh