Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1277 from antsystem/fix/update-heart-beat-api
Browse files Browse the repository at this point in the history
update api definition of /peer/heartbeat and /peer/network
  • Loading branch information
allencloud authored Apr 16, 2020
2 parents 6681c18 + 702937c commit 9426ea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apis/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,15 @@ paths:
$ref: "#/responses/500ErrorResponse"

/peer/heartbeat:
get:
post:
summary: "report the heart beat to super node."
description: |
This endpoint is mainly for reporting the heart beat to supernode.
And supernode could know if peer is alive in strem mode.
parameters:
- name: "body"
in: "body"
description: "request body which contains peer info."
description: "request body which contains base info of peer"
schema:
$ref: "#/definitions/HeartBeatRequest"
responses:
Expand All @@ -669,7 +669,7 @@ paths:
$ref: "#/responses/500ErrorResponse"

/peer/network:
get:
post:
summary: "peer request the p2p network info from supernode."
description: |
In the new mode which dfdaemon will provide the seed file so that other peers
Expand Down Expand Up @@ -1488,11 +1488,11 @@ definitions:

HeartBeatRequest:
type: "object"
description: "The request is to report the heart beat to super node."
description: "The request is to report peer to supernode to keep alive."
properties:
IP:
type: "string"
description: "IP address which peer client carries."
description: "IP address which peer client carries"
format: "ipv4"
port:
type: "integer"
Expand Down
4 changes: 2 additions & 2 deletions apis/types/heart_beat_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9426ea9

Please sign in to comment.