9165b96e0f
Fix comments-server
2019-09-16 20:46:52 +07:00
73c27aec6a
Fix packages/comments-common
2019-09-16 11:39:36 +07:00
50d36f268f
Fix linting errors in packages/jsonrpc
2019-09-15 17:14:31 +07:00
c4ae271604
Move private _-prefix method check into getAllMethods
2019-09-05 09:28:48 +07:00
0222455cd7
Breaking change: JSONRPC context is always 1st argument
2019-08-30 17:12:46 +07:00
b8fb7c2eba
Add warning message about JSONRPC
2019-08-30 16:26:29 +07:00
9cc5a7affb
Add ability to wrap method calls in jsonrpc
2019-08-30 13:19:13 +07:00
2f35b65f48
Add jsonrpc services to server(s)
2019-08-30 11:02:31 +07:00
cd5ff9b5da
Generate @rondo.dev/common entities
2019-08-28 08:08:00 +07:00
46a0a064d0
Make @ensure work with classes
2019-08-27 21:09:39 +07:00
0c867e916e
Rename v to validate
2019-08-27 20:34:05 +07:00
9262cb636e
Use getMetadata instead of getOwnMetadata
2019-08-27 20:33:21 +07:00
c7ab4fe387
Add ability to validate context via @ensure
2019-08-27 16:17:05 +07:00
cc2f5f58e2
Add ability to specify jsonrpc context as extra argument
...
In this case the interface does not define context, but the implementing
service may use it as an optional argument:
interface IService {
add(a: number, b: number): number
}
class Service implements IService {
add(a: number, b: number, ctx?: IContext): number {
return a + b + ctx!.userId
}
}
2019-08-06 20:10:38 +07:00
f3f6166aab
Send 405 when GET request is not allowed
2019-08-05 21:07:46 +07:00
e2f6c5f798
Encode JSON-RPC GET request params as JSON
2019-08-05 21:07:46 +07:00
81225b77a8
Implement GET method for idempotent methods
2019-08-05 21:07:46 +07:00
c273c1b914
Extract jsonrpc functionality into a separate file
2019-08-04 10:08:06 +07:00