Request FormatΒΆ

Note

You may still come across references to APIv1 in some materials. This older version has been fully retired starting from Fudo Enterprise 5.6. The current interface is called APIv2 to distinguish it from the legacy version that was in use earlier.

APIv2 request format:


<method> http://<fudo_address>/api/v2/<endpoint>[?<params>] <body>


Where:

  • <method> - is HTTP method (GET, POST, PATCH or DELETE only allowed),

  • <fudo address> - is Fudo Enterprise IP address (e.g., 10.0.0.0),

  • <endpoint> - is chosen endpoint (e.g., /objspec/user),

  • <params> - is URL parameters available for a specific method (e.g., filter, offset, limit),

  • <body> - is request body in JSON format.

An example of the request that returns a list of available users (with no parameters specified and no body needed):

GET /api/v2/user

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/user' \

An example of the request that creates user with user role and test-user name:

POST /api/v2/user

curl -s -k -X POST \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
      -H 'Content-Type: application/json' \
  'https://10.0.214.98/api/v2/user' \
  -d '{
        "role": "user",
        "name": "test-user"
  }'