Platform Team/Server Kit/sugar-server: Difference between revisions

Line 76: Line 76:
Interface:
Interface:


Service is listening {{Code|--activation-port}} port on the {{Code|--host}} host to process TCP requests. If sent data starts from serial number, the service will reply with:
GET '''/client/lease'''?serial=''SERIAL''
 
Get OLPC anti-thief lease for specified XO's serial number.o
 
The resulting dictionary, contains:
 
* {{Code|lease}}, lease content
 
Service is also listening {{Code|--activation-port}} port on the {{Code|--host}} host to process TCP requests used by XO's bootstrapping code. If sent data starts from serial number, the service will reply with:


* {{Code|STOLEN}} text if serial number is stated as stolen;
* {{Code|STOLEN}} text if serial number is stated as stolen;