Skip to content

Commit

Permalink
Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Jul 5, 2024
1 parent ebe46d8 commit 5080a00
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
42 changes: 42 additions & 0 deletions services/rfq/api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -184,6 +215,17 @@ const docTemplate = `{
}
}
},
"model.PutBulkQuotesRequest": {
"type": "object",
"properties": {
"quotes": {
"type": "array",
"items": {
"$ref": "#/definitions/model.PutQuoteRequest"
}
}
}
},
"model.PutQuoteRequest": {
"type": "object",
"properties": {
Expand Down
42 changes: 42 additions & 0 deletions services/rfq/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -173,6 +204,17 @@
}
}
},
"model.PutBulkQuotesRequest": {
"type": "object",
"properties": {
"quotes": {
"type": "array",
"items": {
"$ref": "#/definitions/model.PutQuoteRequest"
}
}
}
},
"model.PutQuoteRequest": {
"type": "object",
"properties": {
Expand Down
27 changes: 27 additions & 0 deletions services/rfq/api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5080a00

Please sign in to comment.