Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest protocol #352

Merged
merged 85 commits into from
Mar 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
64b9439
init rest protocol
Patrick0308 Jan 11, 2020
5cbba12
rest configs and invoker
Patrick0308 Jan 19, 2020
2d3a6f7
fix
Patrick0308 Jan 21, 2020
69020c0
fixed
Patrick0308 Jan 21, 2020
b3fabce
Merge branch 'develop' into rest_protocol
Patrick0308 Jan 21, 2020
547372f
init rest exporter and modify rest invoker
Patrick0308 Jan 22, 2020
5120254
header params
Patrick0308 Jan 24, 2020
d5fccd6
resty add header params
Patrick0308 Jan 24, 2020
c31030f
fix
Patrick0308 Jan 24, 2020
cbc59d3
go restful server and some unit tests
Patrick0308 Jan 31, 2020
f1908a0
modify
Patrick0308 Jan 31, 2020
567acb1
modify test
Patrick0308 Jan 31, 2020
e899345
Merge pull request #347 from apache/develop
flycash Feb 2, 2020
9acc7aa
Merge branch 'develop' into rest_protocol
Patrick0308 Feb 3, 2020
6a6717f
Merge branch 'feature/rest' into rest_protocol
Patrick0308 Feb 3, 2020
f48a644
fix
Patrick0308 Feb 3, 2020
eb1d850
fix tests
Patrick0308 Feb 3, 2020
756f87f
use "default" constant and remove default timeout options
Patrick0308 Feb 3, 2020
88300f4
add licenses
Patrick0308 Feb 3, 2020
d9c61c4
fmt imports
Patrick0308 Feb 3, 2020
9538a34
fix config initializer
Patrick0308 Feb 4, 2020
f51ae5d
add some unit tests
Patrick0308 Feb 4, 2020
8d1dc02
add testdata about rest config file
Patrick0308 Feb 4, 2020
a957054
add licenses
Patrick0308 Feb 4, 2020
d93a2a3
Merge pull request #329 from Patrick0308/rest_protocol
flycash Feb 5, 2020
114fe40
change service key to path key
Patrick0308 Feb 6, 2020
01361a6
fix serviceKey
Patrick0308 Feb 6, 2020
8b884cc
support req[]
Patrick0308 Feb 6, 2020
fd0a076
fix when args is req[]
Patrick0308 Feb 7, 2020
b67b76a
fix path bug
Patrick0308 Feb 7, 2020
b692796
modify server default consumes and produces
Patrick0308 Feb 8, 2020
bc64aed
Merge pull request #353 from Patrick0308/rest_protocol
flycash Feb 19, 2020
5f90f48
Merge develop
Feb 22, 2020
fd61cc2
Fix review and test
Feb 22, 2020
cd58dfa
Fix review and test
Feb 22, 2020
5af6942
Fix review and test
Feb 22, 2020
eb22fbd
Fix review and test
Feb 22, 2020
b8ac514
Merge pull request #368 from flycash/rest
AlexStocks Feb 22, 2020
a9c5f8f
split import
Patrick0308 Feb 23, 2020
5b76b7c
split import
Patrick0308 Feb 23, 2020
c8a5d15
Merge branch 'rest_protocol' of https://github.com/Patrick0308/dubbo-…
Patrick0308 Feb 23, 2020
4738480
Merge pull request #370 from Patrick0308/rest_protocol
AlexStocks Feb 23, 2020
4e6aa04
add licenses
Patrick0308 Mar 3, 2020
3b46dce
split import
Patrick0308 Mar 3, 2020
5add5e2
remove x/tools
Patrick0308 Mar 3, 2020
4b01d83
Merge pull request #387 from Patrick0308/rest_protocol
flycash Mar 4, 2020
b40361e
fix haven't read error msg
Patrick0308 Mar 6, 2020
182a367
Merge pull request #392 from Patrick0308/rest_protocol
flycash Mar 8, 2020
1829072
modify rest
Patrick0308 Mar 8, 2020
3a46e04
add rest unit tests
Patrick0308 Mar 9, 2020
fa27aa2
modify rest protocol
Patrick0308 Mar 9, 2020
84a2b65
Merge pull request #394 from Patrick0308/rest
flycash Mar 9, 2020
fa5ee68
rest protocol modify
Patrick0308 Mar 9, 2020
f3b5be5
Merge remote-tracking branch 'upstream/develop' into rest
Patrick0308 Mar 10, 2020
47e3150
change yaml unmarshal function to common package
Patrick0308 Mar 10, 2020
f184ee9
modify yaml
Patrick0308 Mar 10, 2020
f8f2b56
Merge pull request #395 from Patrick0308/rest
zouyx Mar 10, 2020
1fd0ddb
modify rest
Patrick0308 Mar 10, 2020
73119b4
Merge pull request #396 from Patrick0308/rest
zouyx Mar 10, 2020
0c55d99
add yaml unit test
Patrick0308 Mar 12, 2020
46af97f
Merge pull request #399 from Patrick0308/rest
zouyx Mar 12, 2020
fea9106
modify rest config
Patrick0308 Mar 14, 2020
c77e8ff
modify rest interface dir
Patrick0308 Mar 14, 2020
f5fdc0e
modify rest
Patrick0308 Mar 14, 2020
007dd79
modify default reader
Patrick0308 Mar 14, 2020
3271f08
modify error info
Patrick0308 Mar 14, 2020
3364d36
modify
Patrick0308 Mar 14, 2020
e9fc1f8
modify
Patrick0308 Mar 14, 2020
dafc2f4
Merge pull request #402 from Patrick0308/rest
flycash Mar 14, 2020
2d8a5cc
Merge remote-tracking branch 'apache/develop' into feature/rest
fangyincheng Mar 14, 2020
a1ff189
fix rest
Patrick0308 Mar 15, 2020
e81095f
add license
Patrick0308 Mar 15, 2020
72fac64
fix test
Patrick0308 Mar 15, 2020
8c53128
Merge pull request #408 from Patrick0308/rest
zouyx Mar 15, 2020
69de204
Ref: refact config loader
fangyincheng Mar 15, 2020
b988571
Merge remote-tracking branch 'apache/develop' into feature/rest
fangyincheng Mar 15, 2020
57a2a8f
Mrg: merge upstream
fangyincheng Mar 15, 2020
66d8a1a
Del: delete config/rest
fangyincheng Mar 15, 2020
4c50edc
Fix: resolve travis
fangyincheng Mar 15, 2020
1e9392a
Imp: improve config reader
fangyincheng Mar 15, 2020
17c29b5
Fix: fix nil point
fangyincheng Mar 15, 2020
d7cc3af
Fix: reviews
fangyincheng Mar 15, 2020
a4c9d8c
Merge pull request #410 from fangyincheng/feature/rest
fangyincheng Mar 15, 2020
639ddef
Fix: fomat import
fangyincheng Mar 15, 2020
7e7dfdb
Mod: rename file name
fangyincheng Mar 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
Patrick0308 committed Feb 3, 2020
commit eb1d850ae3c4c045928f50de2bea16afe460771f
2 changes: 2 additions & 0 deletions protocol/rest/rest_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ func TestRestInvoker_Invoke(t *testing.T) {
assert.Equal(t, now.Unix(), res.Result().(*User).Time.Unix())
assert.Equal(t, int32(23), res.Result().(*User).Age)
assert.Equal(t, "username", res.Result().(*User).Name)
err = common.ServiceMap.UnRegister(url.Protocol, "com.ikurento.user.UserProvider")
assert.NoError(t, err)
}
2 changes: 2 additions & 0 deletions protocol/rest/rest_protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func TestJsonrpcProtocol_Export(t *testing.T) {
proto.Destroy()
_, ok = proto.(*RestProtocol).serverMap[url.Location]
assert.False(t, ok)
err = common.ServiceMap.UnRegister(url.Protocol, "com.ikurento.user.UserProvider")
assert.NoError(t, err)
}

type UserProvider struct {
Expand Down