Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//all are /application/json
//Offering an item
// POST request to endpoint /api/postItem
itemName: String,
itemPrice: Number,
Description: String,
lockerCode: String,
image: String, //BASE64
sellerID: String //could be mapped to a NEO4J db ID??
lockerID: String // DB ID?
// Item listings - This could be the complete
// GET request to endpoint /api/getItems?query=params&query2=params2
// OR??
// GET request to endpoint /api/getItems/:city
itemId: String,
image: String, //link to image
itemName: String,
itemPrice: String,
lockerCode: String,
location: {
latlng: String,
locationInBuilding: String,
lockerIdentifiert: String
}, //How will this be done if we want to anonymise the exact location of the locker
},{/* */}]
// Item purchase
// POST to request to endpoint /api/postItem
itemID: String,
buyerID: String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment