github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/testEnv/pb/service/swagger.json (about)

     1  {"schemes":["http","https"],"swagger":"2.0","info":{"description":"Rony Swagger Service Description","title":"Rony","version":"0.0.1"},"paths":{"/echo/{replica_set}":{"get":{"consumes":["application/json"],"produces":["application/json"],"tags":["Sample"],"operationId":"sampleEcho","parameters":[{"type":"integer","format":"int64","name":"replica_set","in":"path","required":true},{"name":"EchoRequest","in":"body","schema":{"$ref":"#/definitions/EchoRequest"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/EchoResponse"}}}}},"/echo_tunnel/{X}/{YY}":{"get":{"consumes":["application/protobuf"],"produces":["application/protobuf"],"tags":["Sample"],"operationId":"sampleEchoTunnel","parameters":[{"type":"integer","format":"int64","name":"X","in":"path","required":true},{"type":"integer","format":"int64","name":"YY","in":"path","required":true},{"name":"EchoRequest","in":"body","schema":{"$ref":"#/definitions/EchoRequest"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/EchoResponse"}}}}},"/req/{Key}/something":{"get":{"consumes":["application/protobuf"],"produces":["application/protobuf"],"tags":["Sample"],"operationId":"sampleGet","parameters":[{"type":"array","format":"int8","name":"Key","in":"path","required":true}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/GetResponse"}}}}},"/set":{"post":{"consumes":["application/protobuf"],"produces":["application/protobuf"],"tags":["Sample"],"operationId":"sampleSet","parameters":[{"name":"SetRequest","in":"body","schema":{"$ref":"#/definitions/SetRequest"}}],"responses":{"200":{"description":"","schema":{"$ref":"#/definitions/SetResponse"}}}}}},"definitions":{"EchoRequest":{"type":"object","properties":{"Int":{"type":"integer","format":"int64"},"SomeData":{"type":"array","items":{"type":"integer","format":"int8"}},"Timestamp":{"type":"integer","format":"int64"},"replicaSet":{"type":"integer","format":"int64"}}},"EchoResponse":{"type":"object","properties":{"Delay":{"type":"integer","format":"int64"},"Int":{"type":"integer","format":"int64"},"Responder":{"type":"string"},"ServerID":{"type":"string"},"SomeData":{"type":"array","items":{"type":"integer","format":"int8"}},"Timestamp":{"type":"integer","format":"int64"}}},"GetRequest":{"type":"object","properties":{"Key":{"type":"array","items":{"type":"integer","format":"int8"}}}},"GetResponse":{"type":"object","properties":{"Key":{"type":"array","items":{"type":"integer","format":"int8"}},"Value":{"type":"array","items":{"type":"integer","format":"int8"}}}},"Message1":{"type":"object","properties":{"M2":{"$ref":"#/definitions/Message2"},"M2S":{"type":"array","items":{"$ref":"#/definitions/Message2"}},"Param1":{"type":"integer","format":"int64"},"Param2":{"type":"string"}}},"Message2":{"type":"object","properties":{"M1":{"$ref":"#/definitions/Message1"},"P2":{"type":"array","items":{"type":"integer","format":"int8"}},"P3":{"type":"array","items":{"type":"integer","format":"int32"}},"Param1":{"type":"integer","format":"int32"}}},"SetRequest":{"type":"object","properties":{"Key":{"type":"array","items":{"type":"integer","format":"int8"}},"Value":{"type":"array","items":{"type":"integer","format":"int8"}}}},"SetResponse":{"type":"object","properties":{"OK":{"type":"string"}}}},"tags":[{"name":"Sample"}]}