https://github.com/goodforgod/spring-kotlin-bitcoin-analyzer
Spring Kotlin Bitcoin Analyzer Assignment.
https://github.com/goodforgod/spring-kotlin-bitcoin-analyzer
kotlin spring-boot webflux
Last synced: 2 months ago
JSON representation
Spring Kotlin Bitcoin Analyzer Assignment.
- Host: GitHub
- URL: https://github.com/goodforgod/spring-kotlin-bitcoin-analyzer
- Owner: GoodforGod
- Created: 2021-02-24T17:51:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T19:48:53.000Z (over 5 years ago)
- Last Synced: 2025-03-30T07:01:49.774Z (over 1 year ago)
- Topics: kotlin, spring-boot, webflux
- Language: Kotlin
- Homepage:
- Size: 135 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bitcoin Analyzer
[](https://github.com/GoodforGod/bitcoin-analyzer/actions?query=workflow%3A%22Java+CI%22)
[](https://sonarcloud.io/dashboard?id=GoodforGod_bitcoin-analyzer)
[](https://sonarcloud.io/dashboard?id=GoodforGod_bitcoin-analyzer)
[](https://sonarcloud.io/dashboard?id=GoodforGod_bitcoin-analyzer)
[](https://sonarcloud.io/dashboard?id=GoodforGod_bitcoin-analyzer)
## Description
RESTful web service that calculates longest sub-hash found in more than one block hashes.
Implementation requirements:
- Kotlin, Spring
- Also, pay attention to code quality and tests
## Run
```
./gradlew bootRun
```
## API
Service provides:
- **GET** */bitcoin/block/subhash* endpoint with **from** and **to** parameters for range selection of blocks height.
Request example:
```text
http://localhost:8080/bitcoin/block/subhash?from=646940&to=646941
```
Response example:
```json
{
"subHash": "2989"
}
```