From ed41b19998fc4e0d7aadd232e5fba2dabf4d02e3 Mon Sep 17 00:00:00 2001 From: Simon Nishi McCorkindale Date: Fri, 4 Jun 2021 00:42:25 +0800 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9d6d38f..de56092 100644 --- a/README.md +++ b/README.md @@ -20,30 +20,36 @@ Usage Example ### REST API - http://localhost:/api/randint32 + http://localhost:/api/devices + < QWR4E002,QWR4E001 + + http://localhost:/api/randint32?deviceId=QWR4E001 < -1741405968 - http://localhost:/api/randuniform + http://localhost:/api/randuniform?deviceId=QWR4E001 < 0.20340009994 - http://localhost:/api/randnormal + http://localhost:/api/randnormal?deviceId=QWR4E001 < 1.02206840644 - http://localhost:/api/randbytes?length=16 + http://localhost:/api/randbytes?length=16&deviceId=QWR4E001 < ���E��s_�b����G� ### REST JSON API - http://localhost:/api/json/randint32?length=3 + http://localhost:/api/json/randint32?length=3&deviceId=QWR4E001 + < {"devices":['QWR4E002|MED100KX8 100 kHz', 'QWR4E001|MED100KX8 100 kHz']} + + http://localhost:/api/json/randint32?length=3&deviceId=QWR4E001 < {"server": "", "type": "string", "format": "int32", "length": 3, "data": [1524492492, -1194151004, 1365408501], "success": "true"} - http://localhost:/api/json/randuniform?length=2 + http://localhost:/api/json/randuniform?length=2&deviceId=QWR4E001 < {"server": "", "type": "string", "format": "uniform", "length": 2, "data": [0.07230273403292031, 0.733570206706375], "success": "true"} - http://localhost:/api/json/randnormal?length=1 + http://localhost:/api/json/randnormal?length=1&deviceId=QWR4E001 < {"server": "", "type": "string", "format": "normal", "length": 1, "data": [0.6430985466029758], "success": "true"} - http://localhost:/api/json/randhex?length=2&size=5 + http://localhost:/api/json/randhex?length=2&size=5&deviceId=QWR4E001 < {"server": "", "type": "string", "format": "hex", "length": 2, "size": 5, "data": ["b90e1b01bc", "b59374fc0e"], "success": "true"} ### WebSocket API @@ -98,6 +104,7 @@ License Copyright (c) 2020 Andika Wasisto Modified by Tobias Raayoni Last / Randonauts Co. + Modified by soliax / fp2.dev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal