Chef Server Curl Examples

Hi,
I am rusty on Chef. Used the enterprise version around 3-4 years ago and now using Open Source.
Is there a REST API I can use? When I ‘curl https://myhost/organizations/org’ I get a ‘Page moved’ message.

Are there any good curl examples for using the API or is it only through knife?

Thanks

knife raw is probably the easiest way to get a curl-like experience with the Chef API. It’s technically possible to use curl, but you need to generate authentication headers for each request based on the content of the request itself. If you really want to use curl, here’s an example of how to generate the headers: https://docs.chef.io/auth.html#curl

Awesome, thank you. I am now just testing some stuff.