1# Sample Server Overview 2 3The sample server provides a simple server instance for deploying update packages. It can be used as an auxiliary test environment for the UpdateService subsystem. 4 5## Basic Concepts 6 7- Package search service: one of the service capabilities provided by the UpdateService. It depends on the server that supports the TCP and SSL protocols. 8 9- Package search server: a server that provisions the package search service through the TCP connection and the SSL protocol. The sample server mentioned in this document is such a package search server. 10 11- Download server: an HTTP server. 12 13- update.serverip.search: a system parameter that indicates the IP address of the package search server configured on the UpdateService. The default value is **127.0.0.1**. 14 15## Constraints 16 17The following is an example of the JSON response returned by the server. Note that the **verifyInfo** field indicates the SHA-256 value of the update package, and the **size** field indicates the size of the update package, in bytes. 18 19```json 20{ 21 "searchStatus": 0, 22 "errMsg": "success", 23 "checkResults": [{ 24 "versionName": "versionNameSample", 25 "versionCode": "versionCodeSample", 26 "verifyInfo": "verifyInfoSHA256Value1234567", 27 "size": 1234567, 28 "packageType": 1, 29 "url": "http://serverAddressSample/packageNameSample.fileTypeSample", 30 "descriptPackageId": "abcdefg1234567ABCDEFG" 31 }], 32 "descriptInfo": [{ 33 "descriptionType": 0, 34 "content": "This package is used for update." 35 }] 36} 37``` 38