POST /givememp
Content-Type: application/json
{"id": "my_id", "phone": 2345, "longtitude": "123.1123", "latitude", "323.231"}
200 OK
Content-Type: application/json
{"results": [...]}
results的长度为0表示没有匹配的对象,需要ping来轮询
POST /ihavamp
Content-Type: application/json
{"id": "my_id", "phone": 2345, "longtitude": "123.1123", "latitude", "323.231"}
200 OK
Body:
{"results": [...]}
POST /select
Content-Type: application/json
{"id": "my_id", "matched": "matched_id"}
200 OK
Content-Type: application/json
{"id": "matched_id", "phone": 2345, "longtitude": "123.1123", "latitude", "323.231"}
POST /ping
Content-Type: application/json
{"id": "my_id"}
200 OK
{} | {"id": "matched_id", "phone": 2345, "longtitude": "123.1123", "latitude", "323.231"}