我得到了一个使用数据流和java的作业。 我需要做的是编写一个连接到给定数据流的Java类和它的API。
URI:http://<hostname>/ws/DataStream
HTTP operations supported:
GET: query one or more data streams
Elements include:
cstId - customer ID of customer that owns the data stream
streamId - the stream ID
forwardTo - comma separated list of streams to replicate data points to
GET
GET用于检索数据流列表,或按ID ID
检索特定流Example #1:
To get a list of all data streams:
GET ws/DataStream
Returns a list of data streams.
Example #2:
To get information about a specific data stream using its stream ID:
GET ws/DataStream/{streamId}
我理解它是如何运作的,
如何创建一个获取此值的类?
我需要使用哪种物品来存储它们
如何将它们插入数据库?