공식 페이지 문서를 통해 prisma를 nest.js 환경에서 이용한 튜토리얼입니다.
https://docs.nestjs.com/recipes/prisma
- /post/:id: Fetch a single post by its id
- /feed: Fetch all published posts
- /filter-posts/:searchString: Filter posts by title or content
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
Body:
email: String (required): The email address of the user
name: String (optional): The name of the user
- /publish/:id: Publish a post by its id
- /post/:id: Delete a post by its id