From f7978191ef9033a94f3b83b27c39803f07698299 Mon Sep 17 00:00:00 2001 From: garritfra Date: Thu, 29 Nov 2018 20:34:30 +0100 Subject: [PATCH] Add API Description --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d6516b5..289f99a 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,13 @@ Voila, your personal Blockchain! Your JSON Response might look something like th } ] ``` + +## Interacting with your blockchain + +The REST API currently exposes these Endpoints: + +| Method | Route | Description | +| :----- | :---------- | :----------------------------------------- | +| GET | / | Get full blockchain | +| POST | / | Add pending transaction | +| GET | /mine_block | Mine a block with all pending transactions |