123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- {
- "swagger": "2.0",
- "info": {
- "title": "proto-gorm.proto",
- "version": "version not set"
- },
- "tags": [
- {
- "name": "IntPointService"
- },
- {
- "name": "IntPointTxn"
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/v1/point": {
- "post": {
- "summary": "The convention requires the rpc names have Create/Read/Update/List/Delete\nas a prefix. The type is inferred from the response (except for delete),\nso multiple objects can have CURDL handlers in the same service, provided\nthey are given unique suffixes",
- "operationId": "IntPointService_Create",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/proto_gormCreateIntPointResponse"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "description": "Convention dictates that this field be of the given type, and be\nnamed 'payload' in order to autogenerate the handler",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/proto_gormIntPoint"
- }
- }
- ],
- "tags": [
- "IntPointService"
- ]
- }
- },
- "/v1/point/{id}": {
- "get": {
- "operationId": "IntPointService_Read",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/proto_gormReadIntPointResponse"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "id",
- "description": "For a read request, the id field is the only to be specified",
- "in": "path",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "tags": [
- "IntPointService"
- ]
- },
- "post": {
- "summary": "rpc List ( ListIntPointRequest ) returns ( ListIntPointResponse ) {\n option (google.api.http) = {\n get: \"/v1/point\"\n };\n}\nrpc ListSomething( google.protobuf.Empty ) returns ( ListSomethingResponse ) {}",
- "operationId": "IntPointService_Delete",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/proto_gormDeleteIntPointResponse"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "id",
- "description": "Only the id is needed for a delete request",
- "in": "path",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "tags": [
- "IntPointService"
- ]
- }
- },
- "/v1/point/{payload.id}": {
- "post": {
- "operationId": "IntPointService_Update",
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/proto_gormUpdateIntPointResponse"
- }
- },
- "default": {
- "description": "An unexpected error response.",
- "schema": {
- "$ref": "#/definitions/rpcStatus"
- }
- }
- },
- "parameters": [
- {
- "name": "payload.id",
- "in": "path",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/proto_gormIntPoint"
- }
- },
- {
- "name": "gerogeriGegege",
- "in": "query",
- "required": false,
- "type": "string"
- }
- ],
- "tags": [
- "IntPointService"
- ]
- }
- }
- },
- "definitions": {
- "proto_gormCreateIntPointResponse": {
- "type": "object",
- "properties": {
- "result": {
- "$ref": "#/definitions/proto_gormIntPoint",
- "title": "Convention also requires that the return type be the same and named 'result'"
- }
- }
- },
- "proto_gormDeleteIntPointResponse": {
- "type": "object",
- "title": "By convention, on DELETE no response data is given, so either a\ngoogle.protobuf.empty, or an empty struct is sufficient"
- },
- "proto_gormIntPoint": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "x": {
- "type": "integer",
- "format": "int32"
- },
- "y": {
- "type": "integer",
- "format": "int32"
- }
- },
- "title": "IntPoint is a basic message type representing a single cartesian point\nthat we want to store in a database"
- },
- "proto_gormReadIntPointResponse": {
- "type": "object",
- "properties": {
- "result": {
- "$ref": "#/definitions/proto_gormIntPoint",
- "title": "Again the type with 'result' name"
- }
- }
- },
- "proto_gormUpdateIntPointResponse": {
- "type": "object",
- "properties": {
- "result": {
- "$ref": "#/definitions/proto_gormIntPoint"
- }
- }
- },
- "proto_gormUpdateSetIntPointResponse": {
- "type": "object",
- "properties": {
- "results": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/proto_gormIntPoint"
- }
- }
- }
- },
- "protobufAny": {
- "type": "object",
- "properties": {
- "@type": {
- "type": "string"
- }
- },
- "additionalProperties": {}
- },
- "rpcStatus": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int32"
- },
- "message": {
- "type": "string"
- },
- "details": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/protobufAny"
- }
- }
- }
- },
- "v1Field": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "subs": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/v1Field"
- }
- }
- },
- "description": "Field represents a single field for an object.\nIt contains fields name and also may contain a group of sub-fields for cases\nwhen a fields represents some structure."
- },
- "v1FieldSelection": {
- "type": "string",
- "format": "string",
- "properties": {
- "fields": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/v1Field"
- }
- }
- },
- "description": "atlas.api.field_selection",
- "title": "FieldSelection represents a group of fields for some object.\nMain use case for if is to store information about object fields that\nneed to be ratained prior to sending object as a response"
- }
- }
- }
|