Skip to content

Commit

Permalink
Re-organize network endpoints (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Jan 14, 2021
1 parent 2ad841a commit 74cd2d6
Show file tree
Hide file tree
Showing 13 changed files with 361 additions and 590 deletions.
174 changes: 4 additions & 170 deletions doc/schemas/app_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"CodeStatus": {
"enum": [
"ALLOWED_TO_JOIN"
]
],
"type": "string"
},
"EndpointMetrics__Metric": {
"properties": {
Expand Down Expand Up @@ -94,101 +95,6 @@
],
"type": "object"
},
"GetNetworkInfo__NodeInfo": {
"properties": {
"host": {
"$ref": "#/components/schemas/string"
},
"node_id": {
"$ref": "#/components/schemas/uint64"
},
"port": {
"$ref": "#/components/schemas/string"
}
},
"required": [
"node_id",
"host",
"port"
],
"type": "object"
},
"GetNetworkInfo__NodeInfo_array": {
"items": {
"$ref": "#/components/schemas/GetNetworkInfo__NodeInfo"
},
"type": "array"
},
"GetNetworkInfo__Out": {
"properties": {
"nodes": {
"$ref": "#/components/schemas/GetNetworkInfo__NodeInfo_array"
},
"primary_id": {
"$ref": "#/components/schemas/uint64"
}
},
"required": [
"nodes",
"primary_id"
],
"type": "object"
},
"GetNodesByRPCAddress__NodeInfo": {
"properties": {
"node_id": {
"$ref": "#/components/schemas/uint64"
},
"status": {
"$ref": "#/components/schemas/NodeStatus"
}
},
"required": [
"node_id",
"status"
],
"type": "object"
},
"GetNodesByRPCAddress__NodeInfo_array": {
"items": {
"$ref": "#/components/schemas/GetNodesByRPCAddress__NodeInfo"
},
"type": "array"
},
"GetNodesByRPCAddress__Out": {
"properties": {
"nodes": {
"$ref": "#/components/schemas/GetNodesByRPCAddress__NodeInfo_array"
}
},
"required": [
"nodes"
],
"type": "object"
},
"GetPrimaryInfo__Out": {
"properties": {
"current_view": {
"$ref": "#/components/schemas/int64"
},
"primary_host": {
"$ref": "#/components/schemas/string"
},
"primary_id": {
"$ref": "#/components/schemas/uint64"
},
"primary_port": {
"$ref": "#/components/schemas/string"
}
},
"required": [
"primary_id",
"primary_host",
"primary_port",
"current_view"
],
"type": "object"
},
"GetReceipt__Out": {
"properties": {
"receipt": {
Expand Down Expand Up @@ -264,13 +170,6 @@
],
"type": "object"
},
"NodeStatus": {
"enum": [
"PENDING",
"TRUSTED",
"RETIRED"
]
},
"Report": {
"properties": {
"histogram": {
Expand All @@ -292,7 +191,8 @@
"PENDING",
"COMMITTED",
"INVALID"
]
],
"type": "string"
},
"VerifyReceipt__In": {
"properties": {
Expand Down Expand Up @@ -830,72 +730,6 @@
]
}
},
"/network_info": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetNetworkInfo__Out"
}
}
},
"description": "Default response description"
}
}
}
},
"/node/ids": {
"get": {
"parameters": [
{
"in": "query",
"name": "host",
"required": false,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "port",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetNodesByRPCAddress__Out"
}
}
},
"description": "Default response description"
}
}
}
},
"/primary_info": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetPrimaryInfo__Out"
}
}
},
"description": "Default response description"
}
}
}
},
"/receipt": {
"get": {
"parameters": [
Expand Down
Loading

0 comments on commit 74cd2d6

Please sign in to comment.