This endpoint is used to get the information from the server, which application types are known and which options these applications provide.

Applications are used to attach tokens to machines.

The code of this module is tested in tests/test_api_applications.py

16.1.1.24. Application endpoints

GET /application/

returns a json dict of the available applications

Example request:

GET /application HTTP/1.1
Host: example.com
Accept: application/json

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

 {
   "luks": {
     "options": {
       "slot": {
         "type": "int"
       },
       "partition": {
         "type": "str"
       }
     }
   },
   "ssh": {
     "options": {
       "user": {
         "type": "str"
       }
     }
   },
   "otherapplication": {
     "options": {
       "optionA": {
         "type": "int",
         "required": true
       }
     }
   }
 }