Appendix; Rest Architecture; Json Data; Examples - Multitech MultiConnect rCell MTR-H5 Developer's Manual

Multiconnect rcell api cellular router
Hide thumbs Also See for MultiConnect rCell MTR-H5:
Table of Contents

Advertisement

6

Appendix

6.1

REST Architecture

A REST (Representational State Transfer) architecture is a style for interacting with distributed systems and is
commonly used in websites. There are four methods to REST: POST, GET, PUT, and DELETE. These actions
expose the four basic functions of persistent storage: Create, Read, Update, and Delete (CRUD). The responses
to these RESTful actions can be returned in various formats. A RESTful JSON API responds to REST requests
with JSON.
6.2

JSON Data

JSON (JavaScript Object Notation) is a text-based human-readable data interchange that represents simple data
structures and associative arrays.
6.3

Examples

6.3.1

Using Curl to log in

1
curl -- sslv3 -k " https
Curl result:
1
2
" code "
:
200
,
3
" result "
:
4
" address "
:
5
" permission "
6
" port "
:
"52222"
7
" timestamp "
8
" token "
:
"2442 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3 "
9
" user "
:
" admin "
10
,
11
" status "
:
" success "
12
Verbose Curl result:
1
* About to connect () to 192.168.2.1 port 443 (#0)
2
*
Trying 192.168.2.1... connected
3
* successfully set certificate verify locations
4
*
CAfile
:
none
5
CApath
:
/ etc / ssl / certs
6
* SSLv3
,
TLS handshake
7
* SSLv3
,
TLS handshake
8
* SSLv3
,
TLS handshake
9
* SSLv3
,
TLS handshake
10
* SSLv3
,
TLS handshake
11
* SSLv3
,
TLS change cipher
12
* SSLv3
,
TLS handshake
* SSLv3
,
TLS change cipher
13
14
* SSLv3
,
TLS handshake
15
* SSL connection using AES256 - SHA
16
* Server certificate
17
*
subject
:
C = US ; ST = Minnesota ; L = Minneapolis ; CN = rcell . example . com
18
*
start date
:
34
:
//192.168.2.1/ api / login ? username = admin & password = admin "
"192 .168.2.103"
,
:
" admin "
,
,
:
"14
:
30
:
5
:
957"
,
,
Client hello (1)
,
Server hello (2)
,
CERT (11)
:
,
Server finished (14)
,
Client key exchange (16)
,
Client hello (1)
,
Finished (20)
:
,
Client hello (1)
,
Finished (20)
:
:
2013 -05 -01 16
:
31
:
06 GMT
,
:
:
:
:
:
:
:
Multi-Tech Systems, Inc. MultiConnect
6
APPENDIX
R
rCell API Developer Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3Multiconnect rcell mtr-ev3Multiconnect rcell mtr-c2Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3 ... Show all

Table of Contents