Asqatasun usage

Asqatasun usage

Use webapp

Browse http://localhost:8080/ and connect with credentials:

  • login: admin@asqatasun.org
  • password: myAsqaPassword

Use server with Swagger web interface

You may leverage Swagger UI by browsing http://localhost:8080/ and connect with credentials:

  • login: admin@asqatasun.org
  • password: myAsqaPassword

Use server with cURL

You can also a plain old curl request:

ASQA_USER="admin%40asqatasun.org"                                                                                                                    
ASQA_PASSWORD="myAsqaPassword"
API_PREFIX_URL="http://${ASQA_USER}:${ASQA_PASSWORD}@localhost:8080"
API_URL="${API_PREFIX_URL}/api/v0/audit/page/run"

PROJECT_ID="1"
REFERENTIAL="RGAA_4_0"
LEVEL="AA"
URL_TO_AUDIT="https://www.wikidata.org/"

curl -X POST \
     "${API_URL}"                                               \
     -H  "accept: */*"                                          \
     -H  "Content-Type: application/json"                       \
     -d "{                                                      \
            \"urls\": [    \"${URL_TO_AUDIT}\"  ],              \
                           \"referential\": \"${REFERENTIAL}\", \
                           \"level\": \"${LEVEL}\",             \
                           \"contractId\": ${PROJECT_ID},       \
                           \"tags\": []                         \
         }"

You may also leverage the PHP API client.