Skip to content

Implementation of JSON-RPC protocol based on Spring Boot.

License

Notifications You must be signed in to change notification settings

giosil/spring-json-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-json-rpc

Implementation of JSON-RPC protocol based on Spring Boot.

Dependencies

wcollections

  • git clone https://github.com/giosil/wcollections.git
  • mvn clean install - this will publish wcollections-1.0.0.jar in Maven local repository

Build

  • git clone https://github.com/giosil/micro-json-rpc.git
  • mvn clean install

Run

  • mvn spring-boot:run

Run on Docker

  • docker compose up -d

Test

POST http://localhost:8080/rpc

Content-Type: application/json

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "DEMO.hello",
  "params": ["world"]
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "DEMO.helloObj",
  "params": ["world"]
}

View OpenAPI documentation

http://localhost:8080/api-docs

License

License

Contributors

About

Implementation of JSON-RPC protocol based on Spring Boot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published