munkireport / munkireport-php

A reporting tool for munki
MIT License
393 stars 138 forks source link

API documentation for HTTP REST requests #751

Closed rsaeks closed 4 years ago

rsaeks commented 7 years ago

Current API documentation shows how to perform requests to the API via command line tools. Expanding these examples to HTTP REST formats would be very helpful.

bochoven commented 7 years ago

Could you be more precise in what you expect from these examples?

rsaeks commented 7 years ago

Would it be possible to show using a REST flow for getting inventory information about a device with serial number "SERIALNUMBER"? For example:

How to POST to obtain an auth cookie if that is used? What is the URL format for performing a GET request?

Examples:

Even just a basic one on how to get device inventory would be a great start. I'm happy to work on some documentation, but just am not seeing the connection from command-line via bash / python. I've used the Chrome app Postman to work with REST APIs for jamfPRO and have had good luck.