Skip to content

Back-end service for the HyperNova project (re-write)

Notifications You must be signed in to change notification settings

HypernovaProject/instabul-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instabul-v2

Back-end service for the HyperNova project (re-write)

Endpoints

User Login
POST /api/user/#
{
	"username": "example@example.com",
	"password": "password123!@#"
}

User Registration
POST /api/user/register
{
	"username": "exampleuser13",
	"name": "Example User",
	"email": "example@example.com",
	"password": "password123!@#"
}

Fetch data for the logged in user | Needs Auth
GET /api/user/data

Fetch data for a user specified by id
GET /api/user/data/:id

Update user data for logged in user | Needs Auth
PATCH /api/user/data
{
	"name": "Example Name"
}

Fetch all posts | Needs Auth
GET /api/posts/all?page=<int>&limit=<int>

Fetch posts that match the user's tags | Needs Auth
GET /api/posts/matching?page=<int>&limit=<int>

Search posts by title | Needs Auth
GET /api/posts/search/title/:title

Create post | Needs Auth
POST /api/posts/create
{
	"title": "Example Title",
	"description": "Listing description",
	"price": 100.00,
	"tags": "tag1,tag2,tag3"
}

Update post by id
PATCH /api/posts/update/:id
{
    "title": "Changed Title"
}

Delete post by id
DELETE /api/posts/delete/:id

About

Back-end service for the HyperNova project (re-write)

Resources

Stars

Watchers

Forks