♦Get Repository:
API Name | Get Repository |
---|---|
Request Type | GET |
Request URL | service/public/api/repository/{id} |
Request Params | |
Response | { |
♦ Create repository:
API Name | Create Repository |
---|---|
Request Type | Post |
Request URL | service/public/api/repository |
Request Params | application/json
|
Response | 200-Application/Json |
♦ Update Repository:
API Name | Update Repository |
---|---|
Request Type | PUT |
Request URL | service/public/api/repository/{id} |
Request Params | Application/json • HDFS Example: { config: "{ } • HIVE Example: { config: "{ } • HBASE Example: { config: “{ } • KNOX Example: { "config": “{ "isActive": false • STORM Example: { "config": “{ "isActive": true |
Response | 200-Application/json |
♦ Delete Repository:
API Name | Delete Repository |
---|---|
Request Type | Delete |
Request URL | service/public/api/repository/{id} |
Request Param | |
Response | 204-No Content |
♦ Search Repository:
API Name | Search Repositories |
---|---|
Request Type | GET |
Request URL | service/public/api/repository |
Request Params | Query Params |
pagesize int The page size required startindex int The start record index Name string The repository name Type string The repository types("hdfs","hive","hbase","knox","storm") Status boolean The status Enable,disable (status= true/false) Example : Pagesize=25&startindex=0 | |
Response | 200-Application/json Example:
{ "config":"{ "isActive": "true", "config":"", "createDate":"2014-07-16T13:25:54Z", "updateDate":"2014-07-16T13:53:19Z", {
"isActive":true,
{ "config":"{ "isActive":true, "version": "0.1.0"
"name":"hivedev", "config":"{
"isActive":true, |