/Deno-API

Simple API created using Deno

Primary LanguageTypeScript

API rest created with Deno.

Gettint Started

First Install Deno

deno run --allow-net src/index.ts

(Optional) You can use Deno-cli, my own npm package to initiate and run deno projects.

dm run #Runs the 'deno run' command based on the configs at config.json

Routes

/

Returns a 'welcome' message with the actual date.

{
  "message": "Welcome to my Deno API!",
  "time": "2021-01-02T15:39:26.939Z"
}

/persons

Returns a list of persons registered (sample).

[
  {
    "name": "Lucas",
    "age": 20,
    "url": "https://github.com/Lucasmaia435"
  }
]