A dice rolling API done in Typescript using ExpressJS! Running on: https://dicer-api.vercel.app/
The API operates on the "REST API" model, returning a JSON as an HTTP GET response.
From GET requests with the parameter of the dice rolling operation, you will receive a JSON with the information generated from the parameter. Example:
requests.get("https://dicer-api.vercel.app/10d20+15")
Clone the repository:
git clone https://github.com/Furyforev3r/Dicer-API.git
Install dependencies:
npm install
Run the command:
npm start
Acess the application in the browser: http://localhost:PORT
or http://localhost:3000
Common dice operations (Example: 1d20) and sum modifiers in operations (Example: 1d20+15). It is also possible to roll several separate dice at once (Example: 1d20+10d6+15+15+1d100).