Deno 1.0 Released! (Easy) REST API Example

Deno 1.0 Released! (Easy) REST API Example

Deno has officially released and version 1.0.0 is now available! I want to show you how to create a simple, easy REST API using Deno.

Deno has officially released and version 1.0.0 is now available!

In this article, I want to show you how to create a simple, easy REST API using Deno. My mentor Flavio put together an awesome blog on his site that outlines all the details on Deno. I’m going to use one of his examples where he uses Oak and Deno to create a simple REST API.

Oak is a middleware framework similar to Koa.

So here’s a high-level overview of what we are going to do:

  • Install Deno
  • Create the API to perform basic CRUD operations (Create/Read/Update/Delete)
  • Store, in memory, a list of dogs with their name and age
  • Get all dogs
  • Get a specific dog
  • Add a new dog
  • Update an existing dog
  • Remove a dog

Throughout the process, we are going to use a program called Insomnia to test our API. Insomnia is similar to Postman.

Flavio uses TypeScript in his blog, but I’m going to use vanilla JavaScript. Just so you can see that it’s easy to do it either way.

deno api rest javascript developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

An API-First Approach For Designing Restful APIs | Hacker Noon

I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.

A Simple Guide to API Development Tools

APIs can be as simple as 1 endpoint for use by 100s of users or as complex as the AWS APIs with 1000s of endpoints and 100s of thousands of users. Building them can mean spending a couple of hours using a low-code platform or months of work using a multitude of tools. Hosting them can be as simple as using one platform that does everything we need or as complex as setting up and managing ingress control, security, caching, failover, metrics, scaling.

What is REST API? An Overview | Liquid Web

What is REST? The REST acronym is defined as a “REpresentational State Transfer” and is designed to take advantage of existing HTTP protocols when used

A Simple Guide to Planning API Roadmaps

APIs - the current “big thing” - offer the opportunity for modern organizations to unlock new and lucrative business models. The article below covers some tips on how to spin the API flywheel and leverage its possibilities. 

54% of Developers Cite Lack of Documentation as the Top Obstacle to Consuming APIs

APIs are perceived as reliable—more than half of respondents stated that APIs do not break, stop working, or materially change specification often enough to matter.