Wiki source code of Basic API Interface

Version 2.1 by Alex on 2022/03/18 17:38

Show last authors
1 This page explains the Basic REST API  for wCloud Service
2
3 ----
4
5 In order to use the our service, all termination devices must obtain an api key. The basic flow is as follows.
6
7 {{plantuml}}@startuml
8
9 client-->"api Server": Get API key with a unique key(MAC Address)\n ==>https://{api server ip}/v1/getKey/:uuid
10 "api Server"->client: return api key and secret
11
12 client->client:APP save\n- SERVICE_CODE\n- API KEY\n- API SECRET
13
14 client-->"api Server": Get a session key\n ==>https://{api server ip}/v1/session/:apikey
15 "api Server"->client: return a session key and expired date
16
17 @enduml{{/plantuml}}
18
19 ----
20
21 ===== ##Basic Endpoints for API Key and Session Key## =====
22
23 * [[API Key>>getapikey|API Key]] :  **POST /v1/getKey/:uuid**
24 * [[Session Key>>getsessionkey|Session Key]] : **POST /v1/session:apikey**
25
26 ----
27
28 ===== Revision History =====
29
30 |=(% style="width: 79px;" %)(((
31 **Rev**
32 )))|=(% style="width: 623px;" %)(((
33 (((
34 **Description**
35 )))
36 )))|=(% style="width: 126px;" %)(((
37 **Date**
38 )))|=(% style="width: 112px;" %)By
39 |(% style="width:79px" %)(((
40 **0.1**
41 )))|(% style="width:623px" %)(((
42 Draft Release
43 )))|(% style="width:126px" %)(((
44 2019.12.19
45 )))|(% style="width:112px" %)Alex
46 |(% style="width:79px" %) |(% style="width:623px" %) |(% style="width:126px" %) |(% style="width:112px" %)