Skip to content
(OBSOLETE) 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 e…
Branch: master
Clone or download
Pull request Compare This branch is 12 commits behind BrunoNZ:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
requests
.gitignore
README
login.sh
logout.sh
rest.cfg
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
You can’t perform that action at this time.