Skip to content

Commit 85afc4b

Browse files
authored
Change create partitioned topic header (#66)
1 parent 8a9ec03 commit 85afc4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dashboard/src/services/ApiService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,17 +489,17 @@ export default {
489489
return response
490490
},
491491
createPartitionedTopic (cluster, topicPath, numPartitions) {
492-
const response = ApiBase().put(`${cluster}/persistent/${topicPath}/partitions`, numPartitions, {
492+
const response = ApiBase().put(`${cluster}/persistent/${topicPath}/partitions`, JSON.stringify(numPartitions), {
493493
headers: {
494-
'Content-Type': 'text/plain'
494+
'Content-Type': 'application/json'
495495
}
496496
})
497497
return response
498498
},
499499
createMissingPartitions (cluster, topicPath) {
500-
const response = ApiBase().post(`${cluster}/persistent/${topicPath}/createMissedPartitions`, '', {
500+
const response = ApiBase().post(`${cluster}/persistent/${topicPath}/createMissedPartitions`, JSON.stringify(''), {
501501
headers: {
502-
'Content-Type': 'text/plain'
502+
'Content-Type': 'application/json'
503503
}
504504
})
505505
return response

0 commit comments

Comments
 (0)