-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
2,442 additions
and
1,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,285 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "immut-apt", | ||
"description": "Boilerplate code generated by **sqlc-grpc**. Modify _proto/*.proto_ files then run `buf generate` to change the services interface.", | ||
"version": "1.0", | ||
"contact": { | ||
"name": "sqlc-grpc", | ||
"url": "https://github.com/walterwanderley/sqlc-grpc" | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "PostgresService" | ||
} | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/all-datum": { | ||
"post": { | ||
"operationId": "PostgresService_AllDatum", | ||
"responses": { | ||
"200": { | ||
"description": "", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1AllDatumRow" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"description": "An unexpected error response.", | ||
"schema": { | ||
"$ref": "#/definitions/rpcStatus" | ||
} | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "body", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/v1AllDatumRequest" | ||
} | ||
} | ||
], | ||
"tags": [ | ||
"PostgresService" | ||
] | ||
} | ||
}, | ||
"/datum-add": { | ||
"post": { | ||
"operationId": "PostgresService_DatumAdd", | ||
"responses": { | ||
"200": { | ||
"description": "A successful response.", | ||
"schema": { | ||
"$ref": "#/definitions/v1DatumAddResponse" | ||
} | ||
}, | ||
"default": { | ||
"description": "An unexpected error response.", | ||
"schema": { | ||
"$ref": "#/definitions/rpcStatus" | ||
} | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "body", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/v1DatumAddRequest" | ||
} | ||
} | ||
], | ||
"tags": [ | ||
"PostgresService" | ||
] | ||
} | ||
}, | ||
"/datums": { | ||
"post": { | ||
"operationId": "PostgresService_GetDatums", | ||
"responses": { | ||
"200": { | ||
"description": "", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1GetDatumsRow" | ||
} | ||
} | ||
}, | ||
"default": { | ||
"description": "An unexpected error response.", | ||
"schema": { | ||
"$ref": "#/definitions/rpcStatus" | ||
} | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "body", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/v1GetDatumsRequest" | ||
} | ||
} | ||
], | ||
"tags": [ | ||
"PostgresService" | ||
] | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"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" | ||
} | ||
} | ||
} | ||
}, | ||
"v1AllDatumRequest": { | ||
"type": "object" | ||
}, | ||
"v1AllDatumResponse": { | ||
"type": "object", | ||
"properties": { | ||
"list": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1AllDatumRow" | ||
} | ||
} | ||
} | ||
}, | ||
"v1AllDatumRow": { | ||
"type": "object", | ||
"properties": { | ||
"datum": { | ||
"type": "string" | ||
}, | ||
"previousHash": { | ||
"type": "string" | ||
}, | ||
"hash": { | ||
"type": "string" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"firstname": { | ||
"type": "string" | ||
}, | ||
"lastname": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"v1DatumAddRequest": { | ||
"type": "object", | ||
"properties": { | ||
"authorId": { | ||
"type": "string", | ||
"format": "int64" | ||
}, | ||
"datum": { | ||
"type": "string" | ||
}, | ||
"hash": { | ||
"type": "string" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"previousHash": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"v1DatumAddResponse": { | ||
"type": "object" | ||
}, | ||
"v1GetDatumsRequest": { | ||
"type": "object" | ||
}, | ||
"v1GetDatumsResponse": { | ||
"type": "object", | ||
"properties": { | ||
"list": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1GetDatumsRow" | ||
} | ||
} | ||
} | ||
}, | ||
"v1GetDatumsRow": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"format": "int64" | ||
}, | ||
"authorId": { | ||
"type": "string", | ||
"format": "int64" | ||
}, | ||
"datum": { | ||
"type": "string" | ||
}, | ||
"previousHash": { | ||
"type": "string" | ||
}, | ||
"hash": { | ||
"type": "string" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"id2": { | ||
"type": "string", | ||
"format": "int64" | ||
}, | ||
"firstname": { | ||
"type": "string" | ||
}, | ||
"lastname": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string" | ||
}, | ||
"password": { | ||
"type": "string" | ||
}, | ||
"deleted": { | ||
"type": "boolean" | ||
}, | ||
"nickname": { | ||
"type": "string" | ||
}, | ||
"createdAt2": { | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.