Skip to content

Rewrite of my NC News API using TypeScript and HonoJS with a PostgreSQL database via Neon.

Notifications You must be signed in to change notification settings

notkoyo/ncnews-api-v2.0.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NC News API v2.0.0

The hosted version of the API can be accessed at ncnews.xg62qbtz2n.workers.dev/api/v2

Project Summary

A REST API to programatically access data, to use within the frontend project. Built using HonoJS & TypeScript, it uses a PostgreSQL database via Neon and interacts with the database using DrizzleORM.

Endpoints

  • GET /health - To check if the API is active.
  • GET /users - Return all current users.
  • GET /topics - Return all topics.
  • GET /articles - Return all articles.
  • GET /articles/{article_id} - Return an article by article ID param.
  • GET /articles/{article_id}/comments - Return all comments for article by article ID param.
  • POST /articles/{article_id}/comments - Create a new comment for the article by article ID param.
  • PATCH /articles/{article_id} - Update an article by article ID param.
  • DELETE /comments/{comment_id} - Delete a comment by comment ID param.

About

Rewrite of my NC News API using TypeScript and HonoJS with a PostgreSQL database via Neon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published