Skip to content

Commit

Permalink
fix: sql
Browse files Browse the repository at this point in the history
  • Loading branch information
oxks committed Jan 15, 2023
1 parent b66e797 commit 9ca37b5
Show file tree
Hide file tree
Showing 33 changed files with 2,442 additions and 1,168 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion README.md

This file was deleted.

285 changes: 285 additions & 0 deletions api/apidocs.swagger.json
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"
}
}
}
}
}
Loading

0 comments on commit 9ca37b5

Please sign in to comment.