@@ -34,6 +34,11 @@ const models: TsoaRoute.Models = {
3434 "trace" : { "dataType" : "any" , "required" : true } ,
3535 } ,
3636 } ,
37+ "StringBodyRequest" : {
38+ "properties" : {
39+ "request" : { "dataType" : "string" , "required" : true } ,
40+ } ,
41+ } ,
3742 "ContractFile" : {
3843 "properties" : {
3944 "name" : { "dataType" : "string" , "required" : true } ,
@@ -108,11 +113,11 @@ const models: TsoaRoute.Models = {
108113} ;
109114
110115export function RegisterRoutes ( app : any ) {
111- app . get ( '/debug/:tx' ,
116+ app . post ( '/debug/:tx' ,
112117 function ( request : any , response : any , next : any ) {
113118 const args = {
114119 tx : { "in" : "path" , "name" : "tx" , "required" : true , "dataType" : "string" } ,
115- source : { "in" : "query " , "name" : "source" , "required" : true , "dataType " : "string " } ,
120+ source : { "in" : "body " , "name" : "source" , "required" : true , "ref " : "StringBodyRequest " } ,
116121 name : { "in" : "query" , "name" : "name" , "required" : true , "dataType" : "string" } ,
117122 path : { "in" : "query" , "name" : "path" , "required" : true , "dataType" : "string" } ,
118123 blockchainHost : { "in" : "query" , "name" : "blockchainHost" , "dataType" : "string" } ,
@@ -160,10 +165,10 @@ export function RegisterRoutes(app: any) {
160165 const promise = controller . findContractsInDir . apply ( controller , validatedArgs ) ;
161166 promiseHandler ( controller , promise , response , next ) ;
162167 } ) ;
163- app . get ( '/disassemble' ,
168+ app . post ( '/disassemble' ,
164169 function ( request : any , response : any , next : any ) {
165170 const args = {
166- source : { "in" : "query " , "name" : "source" , "required" : true , "dataType " : "string " } ,
171+ source : { "in" : "body " , "name" : "source" , "required" : true , "ref " : "StringBodyRequest " } ,
167172 name : { "in" : "query" , "name" : "name" , "required" : true , "dataType" : "string" } ,
168173 path : { "in" : "query" , "name" : "path" , "required" : true , "dataType" : "string" } ,
169174 } ;
@@ -210,10 +215,10 @@ export function RegisterRoutes(app: any) {
210215 const promise = controller . getReceipt . apply ( controller , validatedArgs ) ;
211216 promiseHandler ( controller , promise , response , next ) ;
212217 } ) ;
213- app . get ( '/cfg/source' ,
218+ app . post ( '/cfg/source' ,
214219 function ( request : any , response : any , next : any ) {
215220 const args = {
216- source : { "in" : "query " , "name" : "source" , "required" : true , "dataType " : "string " } ,
221+ source : { "in" : "body " , "name" : "source" , "required" : true , "ref " : "StringBodyRequest " } ,
217222 name : { "in" : "query" , "name" : "name" , "required" : true , "dataType" : "string" } ,
218223 path : { "in" : "query" , "name" : "path" , "required" : true , "dataType" : "string" } ,
219224 constructor : { "in" : "query" , "name" : "constructor" , "dataType" : "boolean" } ,
@@ -235,10 +240,10 @@ export function RegisterRoutes(app: any) {
235240 const promise = controller . getCFGFromSource . apply ( controller , validatedArgs ) ;
236241 promiseHandler ( controller , promise , response , next ) ;
237242 } ) ;
238- app . get ( '/cfg/bytecode' ,
243+ app . post ( '/cfg/bytecode' ,
239244 function ( request : any , response : any , next : any ) {
240245 const args = {
241- bytecode : { "in" : "query " , "name" : "bytecode" , "required" : true , "dataType " : "string " } ,
246+ bytecode : { "in" : "body " , "name" : "bytecode" , "required" : true , "ref " : "StringBodyRequest " } ,
242247 constructor : { "in" : "query" , "name" : "constructor" , "dataType" : "boolean" } ,
243248 } ;
244249
0 commit comments