JC-SoCal / pyFog

Simple API for Fog
4 stars 1 forks source link

REST API Added #3

Open mastacontrola opened 7 years ago

mastacontrola commented 7 years ago

@JC-SoCal I know you created this originally because fog lacked an api environment to work with.

FOG Now (1.4.0 RC 4 and forward) will have an API system you can tie into now.

The basics:

Header:

fog-api-token: <FOG Configuration->FOG Settings->API Settings->FOG_API_TOKEN

Authentication: HTTP Basic foguser:foguserpassword

Basic routes need a "definition" and heavy documentation I realize. As we work towards FOG 2.0 we'll likely improve our documentation process (and it will likely have different things) but there is a rudimentary system now.

mastacontrola commented 7 years ago

API system can now be semi-granularly controlled per user. (Just a checkbox on the user to enable/disable api level functionality).

Please see: https://forums.fogproject.org/topic/10036/api/2

It isn't a "documentation" persay, but should at least help with understanding the whole of the system.