Cisco Fog Director API Usage with Cisco IoT Field Network Director
The following guidelines apply when you use the Cisco Fog Director APIs with Cisco IoT Field Network Director.
Prefix
Use the prefix /resource/rest/fd with the Fog Director API URLs.
For example, to retrieve all uploaded apps, you can use following API call: http://FND_IP:FND_port/resource/rest/fd/api/v1/appmgr/devices
Authentication
Cisco Fog Director API requests honor the basic authentication header for authentication.
For example:
curl -H ‘Authorization: Basic Base64Encoding_of_username:password "http://FND_IP:FND_PORT/resource/rest/fd/api/v1/appmgr/devices”
In this example, Base_64_Encoding_of_username:password is the Base64 encoding value of the Cisco IoT Field Network Director user name and password combination.