Skip to content

REST Service List

Joe Sicree edited this page Aug 24, 2018 · 6 revisions

A working list of REST services that will define the MyMark API

Customer

POST /customer - Create customer (DONE)
GET /customer/{id} - Get customer with id
GET /customer/{userName} - Get customer by userName (DONE)
PUT /customer - Update customer
DELETE /customer/{id} - Delete customer by id (DONE)

Account

POST /account - Create account
GET /account/{id} - Get account by id
GET /account/{email} - Get account by email
PUT /account
DELETE /account - Delete account

Product

GET /products - Get all products (DONE)
GET /product/{id} - Get product by id (DONE)
GET /product/{productCode} - Get product by SKU

Shopping Cart

POST /shoppingcart - Create shopping cart
GET /shoppingcart/{id} - Get shopping cart by id
PUT /shoppingcart - Add item to shopping cart

Inventory

GET /inventory/{id} - Lookup inventory of product
GET /inventory/{sku} - Lookup inventory of product
PUT /inventory - Update the inventory for a product

Order

POST /order - Submit an order
GET /order/{id} - Get an order by id
GET /orders - Get all orders
GET /orders/open - Get all open orders

Clone this wiki locally