Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 1.2 KB

README.md

File metadata and controls

81 lines (53 loc) · 1.2 KB

denojs-api

API using DenoJS and Prisma as ORM

Features

  • Schema Validation
  • Error Logger
  • ORM DataBase

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

API_PORT

DATABASE_URL


Usage

Generate the schemas for the API

yarn prisma:generate

To initiate this project run

  yarn dev

API Reference

Get all things

  GET /api/v1/things
Parameter Type Description
api_key string Required. Your API key

Get thing

  GET /api/things/${id}
Parameter Type Description
id string Required. Id of thing to fetch

Tech


License

MIT


TODO:

  • Add Auth/Bearer token
  • Add prisma docs
  • Test coverage