RESTful API
welaundry 서버를 REST 규칙을 따라 정의한 API를 설명합니다.
Auth
GET
/auth/me
: Authentication check/auth/csrf-token
: Csrf attack security
POST
/auth/signup
: User sign up/auth/login
: User login/auth/logout
: User logout
Customer
GET
customer/all
: Get list of customers/customer?addname&dong&ho
: Find customers by its address name, dong, ho
POST
/customer
: Create a new customer
PUT
/customer/:id
: Update an existing customer by its ID
DELETE
/customer/:id
: Delete an existing customer by its ID
Address
GET
/address
: Get list of address/address/:id
: Find a address by its ID
POST
/address
: Create a new address
PUT
/address/:id
: Update an existing address by its ID
DELETE
/address/:id
: Delete an existing address by its ID
Products
GET
/products
: Get list of products, category
POST
/products
: Create a new category/products/list
: Create a new product
PUT
/products/:id
: Update an existing category list by its IDproducts/list/:id
: Update an existing product list by its ID
DELETE
/products/:id
: Delete an existing category by its ID
Records
GET
/records?addname&dong&ho
: Find records by customer's address name, dong, ho/records/date?startDate&endDate
: Find records by its Date
POST
/records
: Create a new record
DELETE
/records/:id
: Delete an existing record by its ID
Sale
GET
/sale
: Get list of sales
POST
/sale
: Create a new sale
Last updated