diff --git a/services/rfq/api/docs/docs.go b/services/rfq/api/docs/docs.go index fdd79b976b..1edb775079 100644 --- a/services/rfq/api/docs/docs.go +++ b/services/rfq/api/docs/docs.go @@ -46,6 +46,37 @@ const docTemplate = `{ } } }, + "/bulk_quotes": { + "put": { + "description": "upsert bulk quotes from relayer.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "quotes" + ], + "summary": "Upsert quotes", + "parameters": [ + { + "description": "query params", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.PutBulkQuotesRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + }, "/quotes": { "get": { "description": "get quotes from all relayers.", @@ -184,6 +215,17 @@ const docTemplate = `{ } } }, + "model.PutBulkQuotesRequest": { + "type": "object", + "properties": { + "quotes": { + "type": "array", + "items": { + "$ref": "#/definitions/model.PutQuoteRequest" + } + } + } + }, "model.PutQuoteRequest": { "type": "object", "properties": { diff --git a/services/rfq/api/docs/swagger.json b/services/rfq/api/docs/swagger.json index 0f4707ab3f..45ee72b695 100644 --- a/services/rfq/api/docs/swagger.json +++ b/services/rfq/api/docs/swagger.json @@ -35,6 +35,37 @@ } } }, + "/bulk_quotes": { + "put": { + "description": "upsert bulk quotes from relayer.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "quotes" + ], + "summary": "Upsert quotes", + "parameters": [ + { + "description": "query params", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.PutBulkQuotesRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + }, "/quotes": { "get": { "description": "get quotes from all relayers.", @@ -173,6 +204,17 @@ } } }, + "model.PutBulkQuotesRequest": { + "type": "object", + "properties": { + "quotes": { + "type": "array", + "items": { + "$ref": "#/definitions/model.PutQuoteRequest" + } + } + } + }, "model.PutQuoteRequest": { "type": "object", "properties": { diff --git a/services/rfq/api/docs/swagger.yaml b/services/rfq/api/docs/swagger.yaml index a95f1dcddc..e2b9376218 100644 --- a/services/rfq/api/docs/swagger.yaml +++ b/services/rfq/api/docs/swagger.yaml @@ -43,6 +43,13 @@ definitions: description: UpdatedAt is the time that the quote was last upserted type: string type: object + model.PutBulkQuotesRequest: + properties: + quotes: + items: + $ref: '#/definitions/model.PutQuoteRequest' + type: array + type: object model.PutQuoteRequest: properties: dest_amount: @@ -87,6 +94,26 @@ paths: summary: Relay ack tags: - ack + /bulk_quotes: + put: + consumes: + - application/json + description: upsert bulk quotes from relayer. + parameters: + - description: query params + in: body + name: request + required: true + schema: + $ref: '#/definitions/model.PutBulkQuotesRequest' + produces: + - application/json + responses: + "200": + description: OK + summary: Upsert quotes + tags: + - quotes /quotes: get: consumes: