Coder Social home page Coder Social logo

classic-api-postman-collection's Introduction

Classic-API-Postman-Collection

Overview

This collection is provided to assist Jamf Pro users of the Classic API. It provides a quick method to interact with all non-deprecated endpoints.

This article describes the recommended Postman configuration and setup process to import the collection, configure variables to connect it to your Jamf Pro environment and begin testing API calls and interacting with your Jamf Pro environment via the Classic API.

The following expectations were used when designing this collection:

  • All POST operations include a pre-populated request body.
    • This request body may not include all fields supported by the body of the given object, however it will include those required to successfully create the object.
    • Pull requests or issue submissions are encouraged to enhance or update this data.
  • All GET operations include at least one example response.
    • Endpoints that have conditional inputs in the form of parameters or request bodies should include multiple examples (e.g. computercommmands and mobiledevicecommands).
  • All query parameters that have a defined list of acceptable values denote the allowed values in the description of the parameter.

Import the Collection

Use the following options to import the collection into Postman:

  • For Jamf Pro version 10.34.0 and earlier: Click the Run in Postman button to automatically import the collection into your Postman app.
  • For Jamf Pro Version 10.35.0 and later: Click the Run in Postman button to automatically import the collection into your Postman app.
  • In Postman, click File >> Import.
    • Download the JSON included in this repo and select the .json file.

Define Environment Variables

This collection utilizes the following variables which should be defined within the environment variables. Using variables at the collection level is not currently supported by the script that performs that authorization token requests. Follow Postman's documentation to Manage Environments.

10.34.0 and earlier

Variable Description Example
url Hostname and port of the Jamf Pro environment company.jamfcloud.com:443
username Username to authenticate to Jamf Pro with administrator
password Password of the user authenticating to Jamf Pro pa$$word

10.35.0 and later

Variable Description Example
url Protocol, hostname and port of the Jamf Pro environment https://company.jamfcloud.com:443
username Username to authenticate to Jamf Pro with administrator
password Password of the user authenticating to Jamf Pro pa$$word

This version of the collection utilizes scripts to manage the Bearer Token, which is a new authentication method supported in version 10.35.0 and later of Jamf Pro. Tokens will be requested as necessary, so no interaction with authentication endpoint should be necessary. For more information on authentication changes to the Classic API, see the Jamf Developer Portal.

Getting Started

After the collection has been imported and valid values have been defined for the variables, all calls should be supported with minimal input required. Additional data will be required either in the form of a parameter value and/or a request body.

classic-api-postman-collection's People

Contributors

fortunst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.