Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giosil/spring-json-rpc
Implementation of JSON-RPC protocol based on Spring Boot.
https://github.com/giosil/spring-json-rpc
json-rpc json-rpc2 spring-boot
Last synced: 10 days ago
JSON representation
Implementation of JSON-RPC protocol based on Spring Boot.
- Host: GitHub
- URL: https://github.com/giosil/spring-json-rpc
- Owner: giosil
- License: apache-2.0
- Created: 2023-11-10T10:56:20.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-11T14:59:29.000Z (7 months ago)
- Last Synced: 2024-11-07T06:17:49.666Z (about 2 months ago)
- Topics: json-rpc, json-rpc2, spring-boot
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```json
{
"id": 1,
"jsonrpc": "2.0",
"method": "DEMO.hello",
"params": ["world"]
}
``````json
{
"id": 1,
"jsonrpc": "2.0",
"method": "DEMO.helloObj",
"params": ["world"]
}
```## View OpenAPI documentation
`http://localhost:8080/api-docs`
## License
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
## Contributors
* [Giorgio Silvestris](https://github.com/giosil)