REST API service that allows customers to create signature devices
with which they can sign arbitrary transaction data.
The application is written in Golang and uses In Memory maps as database.
GET /api/v1/health
- Returns the health of the service.GET /api/v1/devices
- Returns all the devices.POST /api/v1/devices
- Creates a new device.GET /api/v1/device/{id}
- Returns the device with the given id.POST /api/v1/device/{id}/signatures
- Signs the given transaction with the device with the given id.GET /api/v1/device/{id}/signatures
- Returns all the signatures of the device with the given id.
The API is documented in OpenAPI 3.0 standards. API Documentation
---
title: Tables
---
erDiagram
devices ||--o{ signed_transactions : "Belongs To, One-to-Many"
- The entrypoint is in
main.go
Optional environment variable:
SERVER_PORT
- The port where the HTTP server will listen. Default:8080
- Type
make build
to generate the binaries in thebuild
folder.
- Type
make unit-test
to execute it.
- Type
make coverage-report
to generate an HTML report with the tests coverage. - Type
make coverage-total
to check the total tests coverage.