Skip to content

bwendlandt-intel/Workshop-Open-AMT-Resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resources for the Open AMT Cloud Toolkit Workshop

This repository contains any extra resources needed to participate in the Open AMT Cloud Toolkit Workshop for Open AMT Cloud Toolkit v1.3.0.

Key Files Included:

  • RPC Binary/Executable (OUTDATED, v1.2.0)
    • These binaries are for testing purposes and other non-production uses. Instructions on compiling these binaries yourself can be found here.
  • sample_blank.htm File for Demonstrating APIs
  • sample_filledin.html File which is equivalent to sample_blank.htm but with examples filled in

In this workshop, we will demo APIs using the sample_blank.htm example template. For basic examples on constructing API calls using other tools or technologies, see below.


Other REST API Call Examples

Node.js

View our REST API Call tutorial. Includes a walkthrough and example code for how to get an Authorization Token and then make a call to get all devices of the MPS server.


cURL

Find additional information on curl in their documentation.

Example Authorize

curl -k -X POST -H "Content-Type: application/json" -d "{\"username\": \"standalone\", \"password\": \"G@ppm0ym\"}" https://localhost/mps/login/api/v1/authorize

Example Get Devices

curl -k -H "Authorization: Bearer <Your-JWT-Token>" -X GET https://localhost/mps/api/v1/devices

Postman

The following steps will show how to construct the Authorize API call via Postman:

  1. Select New in the top-left corner or 'Create a Request' via the Launchpad.

  2. Change 'Get' to 'Post' via the drop-down.

  3. Enter the Authorize API URL.

    https://localhost/mps/login/api/v1/authorize
    
  4. In the 'Body' tab, select 'raw' and then 'JSON' from the drop down.

  5. Provide the body according to Authorize API docs.

    {
        "username": "standalone",
        "password": "G@ppm0ym"
    }
    
  6. Click Send.

    Example Input

    input

    Example Output

    input

    Troubleshooting Note: If there is an authorization error, ensure SSL certificate verification is set to OFF in the Settings menu.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages