-
Notifications
You must be signed in to change notification settings - Fork 765
update api definition of /peer/heartbeat and /peer/network #1277
update api definition of /peer/heartbeat and /peer/network #1277
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1277 +/- ##
==========================================
+ Coverage 48.96% 48.97% +0.01%
==========================================
Files 119 119
Lines 7763 7763
==========================================
+ Hits 3801 3802 +1
Misses 3647 3647
+ Partials 315 314 -1
Continue to review full report at Codecov.
|
3aad901 to
112a234
Compare
apis/swagger.yml
Outdated
| in: query | ||
| required: true | ||
| description: "IP of peer." | ||
| type: "string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format should be ipv4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In api defintion, paramter.types should in [string number boolean integer array], which could not set ipv4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format: 'ipv4' if we only support ipv4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
112a234 to
bfc8999
Compare
| items: | ||
| $ref: "#/definitions/Node" | ||
|
|
||
| HeartBeatRequest: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the HTTP request method could be changed into POST, please remain the HeartBeatRequest here. That could be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: allen.wq <allen.wq@alipay.com>
bfc8999 to
702937c
Compare
lowzj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LGTM |
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: allen.wq allen.wq@alipay.com
Ⅰ. Describe what this PR did
Update the api of /peer/heartbeat and /peer/network.
Ⅱ. Does this pull request fix one issue?
NONE.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
no.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews