Commit 343768c6 authored by Schudel, MJ (Michel)'s avatar Schudel, MJ (Michel)

renamed creating new transaction api and translated readme to English. Still...

renamed creating new transaction api and translated readme to English. Still have to check readme after "proff of work".
parent 6bac2573
This diff is collapsed.
......@@ -22,7 +22,7 @@ export class TransactionService {
save(transaction: Transaction): Observable<TransactionResult> {
this.log('Sending new transaction');
return this.http.post<TransactionResult>('/api/newtransaction', transaction)
return this.http.post<TransactionResult>('/api/createtransaction', transaction)
.do(result => this.log(result.message));
}
......
......@@ -33,7 +33,7 @@ public class ApiRestController {
* @param transaction the new transaction
* @return a string describing in which block the transaction will(probably) end up in
*/
@PostMapping("/api/newtransaction")
@PostMapping("/api/createtransaction")
public String newTransaction(@RequestBody Transaction transaction) {
long l = blockchainService.createTransaction(transaction.getFrom(), transaction.getTo(), transaction.getAmount());
return "{\"message\": \"new transaction will be added to block " + l + "\"}";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment