-
Notifications
You must be signed in to change notification settings - Fork 0
Coral REST API
There are several operations under development. They are accessible by sending a HTTP request to:
http://ocean-coral.no-ip.biz:14/<operation_path>
All these operations take a json object as a parameter which travels in a HTTP request body message.
The methods returns (in a HTTP response) a serialised object:
{ key1: value1, key2: value2 }
The whole communication begins when a client requests a handshake. It may be performed by a special operation:
Parameter contains keys:
-
client_key
string
Returned value: object
Returned value contains keys:
-
coral_key
string -
client_id
string
When keys are successfully exchanged and a client ID is assigned, then a client service is eligible to perform other requests:
Parameter contains keys:
-
username
string -
password
string -
client_id
string
Returned value: object
Returned value contains keys:
-
status
bool
Parameter contains keys:
-
client_id
string
Returned value: object
Returned value contains keys:
-
status
bool
Parameter contains keys:
-
last_news_id
string -
count
int -
feed_id
string -
client_id
string
Returned value: object
Returned value contains keys:
-
article_list
list[object]
Each element of article_list contains keys:
-
article_id
string -
author
string -
title
string -
time
int -
description
string -
image_source
string
Parameter contains keys:
-
article_id
string -
client_id
string
Returned value: object
Returned value contains keys:
-
article_id
string -
body
string
Parameter contains keys:
-
client_id
string
Returned value: object
Returned value contains keys:
-
feed_list
list[object]
Each element of feed_list contains keys:
-
link
string -
title
string
Parameter contains keys:
-
feed_tags
list[string] -
client_id
string
Returned value: object
Returned value contains keys:
-
status
bool