Introduction; Configuring Restful Api Settings; Using Restful Api Via A Web Service - Moxa Technologies ioLogik E1211 User Manual

Iologik e1200 series
Hide thumbs Also See for ioLogik E1211:
Table of Contents

Advertisement

ioLogik E1200 Series

Introduction

Since RESTful APIs are based on HTTP, they are highly compatible with a variety of programming languages
(including C# and JavaScript). Consequently, you do not need to learn a new programming language to
communicate with Moxa's ioLogik E1200 products. The RESTful API's GET method makes it easy for IT
professionals to get data, and the PUT method allows you to easily change the configuration and/or status of
your devices.

Configuring RESTful API Settings

Before implementation, three points need to be checked:
1. The RESTful API is active
To enable the RESTful API, enter the server's IP address in your web browser to access the web console.
Under RESTful Settings, select the Enable Restful API checkbox. Click Submit to enable it. It will be
activated after saving and restarting the configuration.
2. Header information
The operating parameters of http should be specified in the header:
Accept: vdn.dac.v1
Content-Type: application/json
3. Supported Methods
Moxa's ioLogik E1200 products support GET, PUT, and OPTIONS methods.
After the settings are ready to go, follow the sample step-by-step instructions on how to use a web service
to GET and PUT data.

Using RESTful API via a Web Service

This example uses the Windows 7 OS, with the server configured as follows:
Note.js: v5.3.0
Express: v4.15.0
7-2
RESTful API Implementation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents