Skip to content

Want to create your own server? Here's a quick little starter project to hopefully get you up and running!

License

Notifications You must be signed in to change notification settings

hottubapp/mock-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Server

This is a mock server for the Hot Tub app. It is used to mock the API responses for the app.

Running the server

npm install
npm run dev

API Endpoints

Status

curl -X POST http://localhost:3000/api/status

Popular Videos

curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight"}'

Search Videos

curl -X POST http://localhost:3000/api/videos -d '{"page":"1","channel":"alice","sort":"popular","sexuality":"straight","query":"test"}'

Parameters

  • page: The page number for pagination (e.g., "1").
  • channel: The network/channel to filter and/or route to the correct results (e.g., "hottub").
  • sort: The sorting order of the results (e.g., "popular").
  • sexuality: The sexuality filter for the videos (e.g., "straight").
  • query: The search query string (e.g., "test").

About

Want to create your own server? Here's a quick little starter project to hopefully get you up and running!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published