Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
45ffe355
Unverified
Commit
45ffe355
authored
May 03, 2021
by
Anatolie Lupacescu
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using lower camel case for field names in http responses (#1613)
parent
f5aa73f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
SwarmCommon.yaml
openapi/SwarmCommon.yaml
+6
-6
chequebook.go
pkg/debugapi/chequebook.go
+1
-1
p2p.go
pkg/debugapi/p2p.go
+2
-2
settlements.go
pkg/debugapi/settlements.go
+2
-2
welcome_message.go
pkg/debugapi/welcome_message.go
+2
-2
No files found.
openapi/SwarmCommon.yaml
View file @
45ffe355
...
@@ -29,9 +29,9 @@ components:
...
@@ -29,9 +29,9 @@ components:
$ref
:
"
#/components/schemas/P2PUnderlay"
$ref
:
"
#/components/schemas/P2PUnderlay"
ethereum
:
ethereum
:
$ref
:
"
#/components/schemas/EthereumAddress"
$ref
:
"
#/components/schemas/EthereumAddress"
public
_k
ey
:
public
K
ey
:
$ref
:
"
#/components/schemas/PublicKey"
$ref
:
"
#/components/schemas/PublicKey"
pss
_public_k
ey
:
pss
PublicK
ey
:
$ref
:
"
#/components/schemas/PublicKey"
$ref
:
"
#/components/schemas/PublicKey"
Balance
:
Balance
:
...
@@ -131,7 +131,7 @@ components:
...
@@ -131,7 +131,7 @@ components:
ChequebookAddress
:
ChequebookAddress
:
type
:
object
type
:
object
properties
:
properties
:
chequebook
a
ddress
:
chequebook
A
ddress
:
$ref
:
"
#/components/schemas/EthereumAddress"
$ref
:
"
#/components/schemas/EthereumAddress"
DateTime
:
DateTime
:
...
@@ -314,9 +314,9 @@ components:
...
@@ -314,9 +314,9 @@ components:
Settlements
:
Settlements
:
type
:
object
type
:
object
properties
:
properties
:
total
r
eceived
:
total
R
eceived
:
type
:
integer
type
:
integer
total
s
ent
:
total
S
ent
:
type
:
integer
type
:
integer
settlements
:
settlements
:
type
:
array
type
:
array
...
@@ -410,7 +410,7 @@ components:
...
@@ -410,7 +410,7 @@ components:
WelcomeMessage
:
WelcomeMessage
:
type
:
object
type
:
object
properties
:
properties
:
welcome
_m
essage
:
welcome
M
essage
:
type
:
string
type
:
string
FeedType
:
FeedType
:
...
...
pkg/debugapi/chequebook.go
View file @
45ffe355
...
@@ -44,7 +44,7 @@ type chequebookBalanceResponse struct {
...
@@ -44,7 +44,7 @@ type chequebookBalanceResponse struct {
}
}
type
chequebookAddressResponse
struct
{
type
chequebookAddressResponse
struct
{
Address
string
`json:"chequebook
a
ddress"`
Address
string
`json:"chequebook
A
ddress"`
}
}
type
chequebookLastChequePeerResponse
struct
{
type
chequebookLastChequePeerResponse
struct
{
...
...
pkg/debugapi/p2p.go
View file @
45ffe355
...
@@ -19,8 +19,8 @@ type addressesResponse struct {
...
@@ -19,8 +19,8 @@ type addressesResponse struct {
Overlay
swarm
.
Address
`json:"overlay"`
Overlay
swarm
.
Address
`json:"overlay"`
Underlay
[]
multiaddr
.
Multiaddr
`json:"underlay"`
Underlay
[]
multiaddr
.
Multiaddr
`json:"underlay"`
Ethereum
common
.
Address
`json:"ethereum"`
Ethereum
common
.
Address
`json:"ethereum"`
PublicKey
string
`json:"public
_k
ey"`
PublicKey
string
`json:"public
K
ey"`
PSSPublicKey
string
`json:"pss
_public_k
ey"`
PSSPublicKey
string
`json:"pss
PublicK
ey"`
}
}
func
(
s
*
Service
)
addressesHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
(
s
*
Service
)
addressesHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
pkg/debugapi/settlements.go
View file @
45ffe355
...
@@ -27,8 +27,8 @@ type settlementResponse struct {
...
@@ -27,8 +27,8 @@ type settlementResponse struct {
}
}
type
settlementsResponse
struct
{
type
settlementsResponse
struct
{
TotalSettlementReceived
*
big
.
Int
`json:"total
r
eceived"`
TotalSettlementReceived
*
big
.
Int
`json:"total
R
eceived"`
TotalSettlementSent
*
big
.
Int
`json:"total
s
ent"`
TotalSettlementSent
*
big
.
Int
`json:"total
S
ent"`
Settlements
[]
settlementResponse
`json:"settlements"`
Settlements
[]
settlementResponse
`json:"settlements"`
}
}
...
...
pkg/debugapi/welcome_message.go
View file @
45ffe355
...
@@ -14,11 +14,11 @@ import (
...
@@ -14,11 +14,11 @@ import (
const
welcomeMessageMaxRequestSize
=
512
const
welcomeMessageMaxRequestSize
=
512
type
welcomeMessageRequest
struct
{
type
welcomeMessageRequest
struct
{
WelcomeMesssage
string
`json:"welcome
_m
essage"`
WelcomeMesssage
string
`json:"welcome
M
essage"`
}
}
type
welcomeMessageResponse
struct
{
type
welcomeMessageResponse
struct
{
WelcomeMesssage
string
`json:"welcome
_m
essage"`
WelcomeMesssage
string
`json:"welcome
M
essage"`
}
}
func
(
s
*
Service
)
getWelcomeMessageHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
(
s
*
Service
)
getWelcomeMessageHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment