You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apiintegrations/jamfpro/README.MD
+1-41Lines changed: 1 addition & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ The Jamf Pro API Handler is an integral component of the Go API HTTP Client, des
9
9
-**Accept Header Management**: Generates a weighted `Accept` header to indicate the client's capability to process various MIME types, prioritizing XML for compatibility with the Classic API.
10
10
-**Standard Headers**: Provides a set of standard headers required for API requests, including `Accept`, `Content-Type`, and `Authorization`.
11
11
-**Request Marshaling**: Encodes request bodies into the appropriate format (XML or JSON) based on the target API endpoint, with support for multipart/form-data encoding for file uploads.
12
-
-**Response Handling**: Processes API responses, decoding them into the desired data structures and handling binary data responses where applicable.
13
12
14
13
The logic of this api handler is defined as follows:
15
14
Classic API:
@@ -36,43 +35,4 @@ For responses (DELETE):
36
35
- Handle response codes as response body lacks anything useful.
37
36
Headers
38
37
- Sets accept headers based on weighting. Jamf Pro API doesn't support XML, so MIME type is skipped and returns JSON
39
-
- Set content header as application/json with edge case exceptions based on need.
40
-
41
-
42
-
## Usage
43
-
44
-
To utilize the Jamf Pro API Handler within the Go API HTTP Client, instantiate the client with the Jamf Pro-specific configuration:
0 commit comments