Files
kafka-console-ui/ui/src/utils/api.js
2021-09-11 16:19:13 +08:00

80 lines
1.3 KiB
JavaScript

export const KafkaAclApi = {
addKafkaUser: {
url: "/user",
method: "post",
},
getKafkaUserDetail: {
url: "/user/detail",
method: "get",
},
deleteKafkaUser: {
url: "/user/auth",
method: "delete",
},
getAclList: {
url: "/acl/list",
method: "post",
},
addProducerAuth: {
url: "/acl/producer",
method: "post",
},
deleteProducerAuth: {
url: "/acl/producer",
method: "delete",
},
addConsumerAuth: {
url: "/acl/consumer",
method: "post",
},
deleteConsumerAuth: {
url: "/acl/consumer",
method: "delete",
},
getOperationList: {
url: "/acl/operation/list",
method: "get",
},
addAclAuth: {
url: "/acl",
method: "post",
},
getAclDetailList: {
url: "/acl/detail",
method: "post",
},
deleteAcl: {
url: "/acl",
method: "delete",
},
};
export const KafkaConfigApi = {
getConfig: {
url: "/config",
method: "get",
},
};
export const KafkaTopicApi = {
getTopicList: {
url: "/topic/list",
method: "get",
},
deleteTopic: {
url: "/topic",
method: "delete",
},
};
export const KafkaConsumerApi = {
getConsumerGroupList: {
url: "/consumer/group/list",
method: "post",
},
deleteConsumerGroup: {
url: "/consumer/group",
method: "delete",
},
};