Skip to content
Snippets Groups Projects
Commit c774c9cc authored by Tobias Grantner's avatar Tobias Grantner
Browse files

Changed HTTP method to create query to POST

parent 33a68843
No related branches found
No related tags found
2 merge requests!106Dev,!104Resolve "Change HTTP method to create query to POST"
...@@ -37,7 +37,7 @@ public class QueryEndpoint extends AbstractEndpoint { ...@@ -37,7 +37,7 @@ public class QueryEndpoint extends AbstractEndpoint {
this.storeService = storeService; this.storeService = storeService;
} }
@PutMapping @PostMapping
@Transactional(readOnly = true) @Transactional(readOnly = true)
@Timed(value = "query.execute", description = "Time needed to execute a query") @Timed(value = "query.execute", description = "Time needed to execute a query")
@Operation(summary = "Execute query", security = @SecurityRequirement(name = "bearerAuth")) @Operation(summary = "Execute query", security = @SecurityRequirement(name = "bearerAuth"))
......
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
async executeFirstTime (parent, sql) { async executeFirstTime (parent, sql) {
this.loading = true this.loading = true
try { try {
const res = await this.$axios.put(this.executeUrl, { statement: sql }, this.config) const res = await this.$axios.post(this.executeUrl, { statement: sql }, this.config)
console.debug('query result', res.data) console.debug('query result', res.data)
this.$toast.success('Successfully executed query') this.$toast.success('Successfully executed query')
this.mapResults(res.data) this.mapResults(res.data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment