-
Notifications
You must be signed in to change notification settings - Fork 3
REST APIs
soominJung edited this page Oct 29, 2020
·
25 revisions
please refer to classpath:/apis
- Service: (spring security)
- Endpoint: /api/authorization
- method: post
- Request: Form(username[emailAddress/username], passsword)
- Response: JSON(user info or exception)
- Service: MemberService
- method: post
- Endpoint: /api/MemberRegister
- Request: Form(username, password, name, emailAddress, gender, birth, phone, *enrollDate, seller, *level, *delFlag, *deleteDate)
- *=Generated Value
- Response: JSON(user info or exception)
- Service: MemberService
- Endpoint: /api/registerSeller
- method: post
- Request: none
- Response: JSON (200 Status or Exception Message)
- Service: MemberService
- Endpoint: /api/fetchUser
- method: get
- Request: none
- Response: JSON (user info or exception)
- Endpoint: /api/fetchUser
- Response: JSON( username : String , authenticated : boolean )
- Service: MemberService
- Endpoint: /api/getMember?username=:username
- method: get
- Request: username
- Response: JSON (user info or exception)
- Service: ProductService
- Endpoint: /api/ProductRegister
- method: post
- Request: form(prodName, thumbImage, stock, price, category, username)
- Service: ProductService
- Endpoint: /api/fileUpload
- method: post
- Request: form(file, category)
- Service: ProductService
- Endpoint: /api/listProductAll
- method: get
- Response: JSON -> return List
- Service: ProductService
- Endpoint: /api/SearchResult?key=:key
- Request: key
- Response: JSON -> return List
- Service: CartService
- Endpoint: /api/purchase
- method: post
- Request: form(pid, numberOfItems, purchase.id)
- Response: (200 Status or Exception Message)
- Service: CartService
- Endpoint: /api/getPurchased
- method: post
- Request: uid
- Response: JSON -> List
- Service: CartService
- Endpoint: /api/checkOut
- method: post
- Request: uid
- Response: JSON (200 Status or Exception Message)
- Service: ProductService
- Endpoint: /api/Curation/{pid}
- Request: pid
- Response: JSON
- Service: MemberService
- Endpoint: /api/getCart/{username}
- method: post
- Request: username
- Response: JSON -> List
- Service: CartService
- Endpoint: /api/addToCart
- method: post
- Request: form(pid, numberOfItems, purchase.id)
- Response: JSON (200 Status or Exception Message)
- Service: CartService
- Endpoint: /api/deleteFromCart
- method: post
- Request: form(uid, pid)
- Response: JSON (200 Status or Exception Message)
- Service: CartService
- Endpoint: /api/updateQtyFromCart
- method: post
- Request: form(uid, qty, pid)
- Response: JSON (200 Status or Exception Message)
- Service: ProductService
- Endpoint: /api/details/{product.id}
- Request: product.id
- Response: Object product
- Service: getProductById
- Endpoint: /api/getProductById
- method: post
- Request: form(Array)
- Response: JSON -> List
- Service: DeliveryService
- Endpoint: /api/delivery
- Request: form({"member" : {"username"},"zipcode","nameOfDelivery","address1","address2","mainAddress"})
- Response: JSON(200 Status or Exception Message)