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 {
this.storeService = storeService;
}
@PutMapping
@PostMapping
@Transactional(readOnly = true)
@Timed(value = "query.execute", description = "Time needed to execute a query")
@Operation(summary = "Execute query", security = @SecurityRequirement(name = "bearerAuth"))
......
......@@ -62,7 +62,7 @@ export default {
async executeFirstTime (parent, sql) {
this.loading = true
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)
this.$toast.success('Successfully executed query')
this.mapResults(res.data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment