Skip to content
Snippets Groups Projects
Select Git revision
  • 467e8e6825bb86d52d3b3eaf276fb9d35bf07848
  • master default protected
  • ems19_continue
  • godp21_continuidade
  • update
  • use_base_url_env
  • test_env_production
  • update_result_routes
  • development
9 results

count&dims=adm_dependency_detailed.csv

Blame
  • logout.sh 449 B
    TOKEN=${1}
    
    DSPACEURL="https://localhost:8443/rest"
    TYPE="json"
    VERB="POST"
    ACTION="logout"
    
    if [ $# != 1 ]; then
      echo -e "ERROR! Wrong number parameter!"
      echo -e "USE:"
      echo -e "${0} <TOKEN>"
      exit 1
    fi
    
    RQST="{
      \"email\":\"${EMAIL}\",
      \"password\":\"${PASSWORD}\"
    }"
    
    curl -k -4 \
      -H "rest-dspace-token: ${TOKEN}" \
      -H "accept: application/${TYPE}" \
      -H "Content-Type: application/${TYPE}" \
      -X ${VERB} "${DSPACEURL}/${ACTION}"