Skip to content

API to manage users, offers and payment. Use for sites that sell products like Vinted.

Notifications You must be signed in to change notification settings

csengmany/vinted-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vinted API

drawing

Packages


User

/user/signup (POST)

Create a new user

Body Type Required
email string Yes
password string Yes
username string Yes
phone string No

/user/login (POST)

Log a user

Body Type Required
email string Yes
password string Yes

Offer

/offers/ (GET)

Receive a list of offers. Possibility to filter the results.

Query Required Description
title No get a list of offers that contain title
priceMin No get offers above priceMin
priceMax No get offers below priceMax
sort No date-asc : get a list of offers sort by ascending dates
date-desc: get a list of offers sort by descending dates
price-asc: get a list of offers sort by ascending prices
price-desc: get a list of offers sort by descending prices
page No set the results page
limit No set the limit of results

/offer/:id (GET)

Get an offer

Param Required Description
id Yes offer id

/offer/publish (POST)

Create a new offer

formData Required Description
title Yes offer title
description Yes product description
price Yes product price
brand Yes product brand
size Yes product size
condition Yes product condition
color Yes offer color
city Yes the city in which the offer is located
picture Yes product picture
Headers Required Description
Bearer token Yes user token

/offer/update/:id (PUT)

Update an offer

Param Required Description
id Yes offer id
Headers Required Description
Bearer token Yes user token
formData Required Description
title No offer title
description No product description
price No product price
brand No product brand
size No product size
condition No product condition
color No offer color
location No offer location
picture No product picture

/offer/delete/picture/:id (DELETE)

Delete a picture of an offer

Param Required Description
id Yes offer id
Headers Required Description
Bearer token Yes user token

/offer/delete/:id (DELETE)

Delete an offer

Param Required Description
id Yes offer id
Headers Required Description
Bearer token Yes user token

Payment

/payment (POST)

Route to pay an offer

formData Required Description
amount Yes amount of payment
stripeToken Yes Stripe token

About

API to manage users, offers and payment. Use for sites that sell products like Vinted.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published