API Auth and Specs
-
Hi,
I have followed the curl example in the docs for all three types of authentication (Basic, fog-api-token and fog-user-token) against the basic info endpoint, but I am either getting a 401 (Unauthorized) or 403 (Forbidden).
Is there full API documentation online? Amongst other things, I would like to add/update host entries via the API, but require detailed spec…
Thanks,
Jose -
-
@Tom-Elliott many thanks.
I am now able to authenticate and access the APIs. The original docs were not clear about the fact that one needs to submit BOTH 'fog-api-token AND ‘fog-user-token’ headers.
Will experiment and try to figure out the required content of the body messages for the POST/PUT operations that I need to work with and will reach out to you if I get stuck with a particular call.
-
Thanks for the information.