diff --git a/taprpc/taprootassets.pb.gw.go b/taprpc/taprootassets.pb.gw.go index 4da7e1716..cc428c54e 100644 --- a/taprpc/taprootassets.pb.gw.go +++ b/taprpc/taprootassets.pb.gw.go @@ -555,14 +555,6 @@ func request_TaprootAssets_GetInfo_0(ctx context.Context, marshaler runtime.Mars var protoReq GetInfoRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -572,14 +564,6 @@ func local_request_TaprootAssets_GetInfo_0(ctx context.Context, marshaler runtim var protoReq GetInfoRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetInfo(ctx, &protoReq) return msg, metadata, err @@ -1169,7 +1153,7 @@ func RegisterTaprootAssetsHandlerServer(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("POST", pattern_TaprootAssets_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_TaprootAssets_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1613,7 +1597,7 @@ func RegisterTaprootAssetsHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("POST", pattern_TaprootAssets_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_TaprootAssets_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) diff --git a/taprpc/taprootassets.swagger.json b/taprpc/taprootassets.swagger.json index 3482c8471..2aa30235b 100644 --- a/taprpc/taprootassets.swagger.json +++ b/taprpc/taprootassets.swagger.json @@ -522,7 +522,7 @@ } }, "/v1/taproot-assets/getinfo": { - "post": { + "get": { "summary": "tapcli: `getinfo`\nGetInfo returns the information for the node.", "operationId": "TaprootAssets_GetInfo", "responses": { @@ -539,16 +539,6 @@ } } }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/taprpcGetInfoRequest" - } - } - ], "tags": [ "TaprootAssets" ] @@ -1490,9 +1480,6 @@ } } }, - "taprpcGetInfoRequest": { - "type": "object" - }, "taprpcGetInfoResponse": { "type": "object", "properties": { diff --git a/taprpc/taprootassets.yaml b/taprpc/taprootassets.yaml index ecc8819c1..8ee5acd40 100644 --- a/taprpc/taprootassets.yaml +++ b/taprpc/taprootassets.yaml @@ -15,8 +15,7 @@ http: body: "*" - selector: taprpc.TaprootAssets.GetInfo - post: "/v1/taproot-assets/getinfo" - body: "*" + get: "/v1/taproot-assets/getinfo" - selector: taprpc.TaprootAssets.QueryAddrs get: "/v1/taproot-assets/addrs"