This article introduces the detailed description of the public request headers and public response headers of AnQiCMS interface.
Common Request Headers (Common Request Headers)
Some common request headers are used in the AnQiCMS RESTful API interface, which can be used by all API requests. The detailed definitions can be seen in the table below.
| Name | Type | Example Value | Description |
|---|---|---|---|
| Token | string | eyJhbGciOiJIUzI1NiIsIn…. | In non-anonymous requests, the authentication information used to verify the legality of the request. There are two types of tokens, one is used for importing documents, obtained through the background import feature, and the other is used for user operations, obtained from the JSON returned by the user login interface. Default value: None |
| Site-Id | integer | 1 | Station ID. Default value: None |
| Content-Length | integer | 556 | RFC 2616The length of the HTTP request content defined in【en】. Default value: None |
| Content-Type | string | application/ | RFC 2616The HTTP request content type defined in【en】. Default value: None |
| Date | string | Wed, 08 Jul 2020 07:05:05 GMT | GMT time as specified in the HTTP 1.1 protocol. Default value: None |
| Host | string | api.anqicms.com | RFC 2616Defined in the Host field of the HTTP request header. Default value: None |
| Accept | string | application/ | RFC 2616The Accept field in the defined HTTP request headers. Default value: None |
Common Response Headers
AnQiCMS's RESTful API uses some common response headers, which can be used by all API requests. Detailed definitions can be found in the table below.
| Name | Type | Example Value | Description |
|---|---|---|---|
| Update-Token | string | eyJhbGciOiJIUzI1NiIsIn…. | Please receive the Update-token and replace the original Token to store it for use. Default value: None |
| Content-Length | integer | 556 | RFC 2616The length of the HTTP request content defined in【en】. Default value: None |
| Content-Type | string | application/ | RFC 2616The HTTP request content type defined in【en】. Default value: None |
| Date | string | Wed, 08 Jul 2020 07:05:05 GMT | GMT time as specified in the HTTP 1.1 protocol. Default value: None |
| Connection | string | keep-alive | RFC 2616Defined in the HTTP request header field Connection. Default value: None |