Accessing The Rest-Api Through Postman; About Postman - Safran WR-ZEN Series User Manual

Hide thumbs Also See for WR-ZEN Series:
Table of Contents

Advertisement

4.2  The REST-API
4.
4.2.4

Accessing the REST-API through Postman

4.2.4.1

About Postman

Postman is an HTTP client that serves as a development app to prototype and
test APIs. The Postman app is available for Microsoft Windows™, Mac OS X or
later,
http://www.postman.com/downloads/
by Postdot Technologies, Inc. In its basic configuration, the tool is free of charge.
Postman can be used to send the requests to a White Rabbit Time Server unit,
and it will return the JSON response from the device. This allows the user to
quickly test API calls without having to develop test software, and the format of
the data returned can be easily analyzed for inclusion into scripts or applications
that can consume the data.
42
An example line for curl is provided for testing purposes:
curl -X 'GET' \
'http://10.22.26.106:8201/v1/preset?format=complete' \
-H 'accept: application/json' \
-
H
'Authorization:
bGciOiJIUzI1NiIsInR5cCI6Ik-
pXVCJ9.eyJzdWIiOiJyb290IiwiZXhwIjoxNjc1MzY3Mjk1fQ.RGDFVCnbG-
ltHa9PfiAqLZXpaw5R_wPtOWe8R6DYZhQ'
and
Linux;
there
is
also
. Postman is a software app developed
CHAPTER
Bearer
a
web
browser
4
WR-ZEN Series User Manual Rev. v5.1
eyJh-
version:

Advertisement

Table of Contents
loading

Table of Contents