1.0.23 • Published 5 months ago

rest-to-jsonrpc-2.0 v1.0.23

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

rest-to-jsonrpc-2.0

Receive the paths REST.

  {
    path,
    id,
    params
  }

Return to JSONRPC.

{
    method: 'test_ping',
    jsonrpc: '2.0',
    params: {
      test: 'oi',
      test2: 'oi2',
    },
    id: 'test123',
  }

Your path the route is a method by server side.

Methods in server side.

type Methods = {
  test_ping(params: { x: string }): string,
}
1.0.19

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.22

5 months ago

1.0.21

5 months ago

1.0.20

5 months ago

1.0.23

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago