Epson TM-T88VI-i Users Manual - WebConfig API - Page 13

Web API Specification, URL of CGI, HTTP Method, Response, Response Header - ip

Page 13 highlights

Chapter 2 Web API Specification Web API Specification URL of CGI  Getting or changing the settings: https:///webconfig/api/v1/reset.cgi HTTP Method  GET: Acquires setting values  PUT: Updates setting values Other methods such as OPTIONS and HEAD are also supported. 2 Response The following content is included in the response. Response Header Header HTTP Method GET PUT HEAD OPTIO NS Description Value Content-Type: - ● ● ● ● application/json; charset=utf-8 Access-Control- Specify "*" in the header for permitting cross- Allow-Origin: domain communication if communication sources ● ● ● ● are not limited. * Access-Control- Communicates the allowable methods of cross- Allow-Methods: ● ● ● ● domain communication. PUT, GET, OPTIONS, HEAD Access-Control- Communicates the allowable request headers of Allow-Headers: ● ● ● ● cross-domain communication. Content-Type, Content-Length, Authorization 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

13
Chapter 2
Web API Specification
2
Web API Specification
URL of CGI
Getting or changing the settings:
https://<Printer’s IP address>/webconfig/api/v1/webconfig.cgi
Printer reset:
https://<Printer’s IP address>/webconfig/api/v1/reset.cgi
HTTP Method
GET: Acquires setting values
PUT: Updates setting values
Other methods such as OPTIONS and HEAD are also supported.
Response
The following content is included in the response.
Response Header
Header
HTTP Method
Description
GET
PUT
HEAD
OPTIO
NS
Value
Content-Type:
-
application/json; charset=utf-8
Access-Control-
Allow-Origin:
Specify “*” in the header for permitting cross-
domain communication if communication sources
are not limited.
*
Access-Control-
Allow-Methods:
Communicates the allowable methods of cross-
domain communication.
PUT, GET, OPTIONS, HEAD
Access-Control-
Allow-Headers:
Communicates the allowable request headers of
cross-domain communication.
Content-Type, Content-Length, Authorization