Skip to content

Commit

Permalink
docs: sync OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Mar 4, 2024
1 parent 6a1a8fc commit 2c22204
Showing 3 changed files with 335 additions and 0 deletions.
125 changes: 125 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1510,6 +1510,74 @@ const docTemplate = `{
}
}
},
"/api/scan/dataAvailability/info": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Avail"
],
"summary": "Submitted Data info",
"parameters": [
{
"description": "param",
"name": "param",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/internal_plugin_avail_dataAvailability_http.SubmittedDataInfoParam"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/scan/dataAvailability/list": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Avail"
],
"summary": "Submitted Data list",
"parameters": [
{
"description": "param",
"name": "param",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/internal_plugin_avail_dataAvailability_http.SubmittedListParam"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/scan/democracy/proposal": {
"post": {
"consumes": [
@@ -8694,6 +8762,47 @@ const docTemplate = `{
}
}
},
"internal_plugin_avail_dataAvailability_http.SubmittedDataInfoParam": {
"type": "object",
"required": [
"extrinsic_index",
"hash"
],
"properties": {
"extrinsic_index": {
"type": "string",
"example": "277764-458"
},
"hash": {
"type": "string",
"example": "0x2a421fc1d893762dcb6391fb48193354147e36d2a2655f4e2eb52a204add42a8"
}
}
},
"internal_plugin_avail_dataAvailability_http.SubmittedListParam": {
"type": "object",
"properties": {
"app_id": {
"type": "integer"
},
"block_num": {
"type": "integer",
"minimum": 1
},
"extrinsic_index": {
"type": "string"
},
"page": {
"type": "integer",
"minimum": 0
},
"row": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
}
},
"internal_plugin_crust_swork_http.CrustFilesParams": {
"type": "object",
"required": [
@@ -13112,6 +13221,10 @@ const docTemplate = `{
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
@@ -13375,6 +13488,10 @@ const docTemplate = `{
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
@@ -14025,6 +14142,10 @@ const docTemplate = `{
"account_id": {
"type": "string"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_hash": {
"type": "string"
},
@@ -15539,6 +15660,10 @@ const docTemplate = `{
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
125 changes: 125 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
@@ -1499,6 +1499,74 @@
}
}
},
"/api/scan/dataAvailability/info": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Avail"
],
"summary": "Submitted Data info",
"parameters": [
{
"description": "param",
"name": "param",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/internal_plugin_avail_dataAvailability_http.SubmittedDataInfoParam"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/scan/dataAvailability/list": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Avail"
],
"summary": "Submitted Data list",
"parameters": [
{
"description": "param",
"name": "param",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/internal_plugin_avail_dataAvailability_http.SubmittedListParam"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/scan/democracy/proposal": {
"post": {
"consumes": [
@@ -8683,6 +8751,47 @@
}
}
},
"internal_plugin_avail_dataAvailability_http.SubmittedDataInfoParam": {
"type": "object",
"required": [
"extrinsic_index",
"hash"
],
"properties": {
"extrinsic_index": {
"type": "string",
"example": "277764-458"
},
"hash": {
"type": "string",
"example": "0x2a421fc1d893762dcb6391fb48193354147e36d2a2655f4e2eb52a204add42a8"
}
}
},
"internal_plugin_avail_dataAvailability_http.SubmittedListParam": {
"type": "object",
"properties": {
"app_id": {
"type": "integer"
},
"block_num": {
"type": "integer",
"minimum": 1
},
"extrinsic_index": {
"type": "string"
},
"page": {
"type": "integer",
"minimum": 0
},
"row": {
"type": "integer",
"maximum": 100,
"minimum": 1
}
}
},
"internal_plugin_crust_swork_http.CrustFilesParams": {
"type": "object",
"required": [
@@ -13101,6 +13210,10 @@
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
@@ -13364,6 +13477,10 @@
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
@@ -14014,6 +14131,10 @@
"account_id": {
"type": "string"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_hash": {
"type": "string"
},
@@ -15528,6 +15649,10 @@
"account_display": {
"$ref": "#/definitions/subscan_internal_model.AccountDisplay"
},
"additional_meta": {
"type": "object",
"additionalProperties": true
},
"block_num": {
"type": "integer"
},
Loading

0 comments on commit 2c22204

Please sign in to comment.