8000 GitHub - elky84/nestjs-api-prisma: nestjs + prisma
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

elky84/nestjs-api-prisma

Repository files navigation

Website Made with Made with Made with

GitHub forks GitHub stars GitHub watchers GitHub followers

GitHub GitHub repo size in bytes GitHub code size in bytes

nestjs-api-prisma

개요

공식 페이지 문서를 통해 prisma를 nest.js 환경에서 이용한 튜토리얼입니다.

https://docs.nestjs.com/recipes/prisma

구현된 API

GET

  • /post/:id: Fetch a single post by its id
  • /feed: Fetch all published posts
  • /filter-posts/:searchString: Filter posts by title or content

POST

/post: Create a new post

Body:

title: String (required): The title of the post

content: String (optional): The content of the post

authorEmail: String (required): The email of the user that creates the post

/user: Create a new user

Body:

email: String (required): The email address of the user

name: String (optional): The name of the user

PUT

  • /publish/:id: Publish a post by its id

DELETE

  • /post/:id: Delete a post by its id

About

nestjs + prisma

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0