Skip to content

salih-g/karpuz-backend

Repository files navigation

Karpuz Backend

Endpoints


Auth

  • POST

    • /v1/auth/login | Login

    • /v1/auth/register | Register

      //Example body
      {
       "username": "testuser",
       "password": "test123"
      }

Content

  • GET

    • /v1/content/:id | Get content by id
    • /v1/content/:username | Get users contents with username
  • POST

    • /v1/content/create | Create content Need auth

      //Example body
      {
       "username": "testuser"
       "post": "test post",
      }
    • /v1/content/comment/create | Create comment Need auth

      //Example body
      {
       "username": "testuser"
       "contentId": "629373bdd155cf2e3ce18653",
       "comment": "test comment",
      }
  • PUT

    • /v1/content/like | Like content need Auth

      //Example body
      {
       "username": "testuser"
       "contentId": "629373bdd155cf2e3ce18653",
      }
  • GET

    • /v1/content/paginated?page=1&limit=5

Reminder

npx prisma db push

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages