-
java SE 1.8.
-
apache-maven-3.2.5.
-
MySql Server 5.5 (Linux command: sudo apt-get install mysql-server-5.5)
-
Create user "salesifua" with password "salesifua" ubuntu command - create user "salesifua"@"localhost" identified by "salesifua"; grant all on . to "salesifua"@"localhost";
mysql -u salesifua -p
CREATE DATABASE salesifua;
-
From console go to project directory
-
Enter command mvn jetty:run
Links for using:
#Links for goods:
-
http://localhost:8080/Practice/goods/ method = GET -- get good list
-
http://localhost:8080/Practice/goods?id= method = GET -- get good by id
-
http://localhost:8080/Practice/goods method = POST -- save or update good
-
http://localhost:8080/Practice/goods method = DELETE -- delete good
-
http://localhost:8080/Practice/goods/page?page=&amount= and Map into request body like "{"name":"asc"}" method = POST -- pagination with sorting
-
http://localhost:8080/Practice/goods/search?name= method = GET -- search good by name with ignore case
-
http://localhost:8080/Practice/goods/filter?from=&to= method = GET -- search any good which are in scope from and to
#Links for shops:
- http://localhost:8080/Practice/shops/all?page=&amount= method = Get -- get shop list
- http://localhost:8080/Practice/shops/{id} method = Get -- get shop by id
- http://localhost:8080/Practice/shops/add method = Post -- save shop
- http://localhost:8080/Practice/shops/update/{id} method = Patch -- update shop
- http://localhost:8080/Practice/shops/delete/{id} method = Delete -- delete shop
- http://localhost:8080/Practice/shops/sort/{field}?page=&amount= method = Get -- sort shops by 'field'
- http://localhost:8080/Practice/shops/filter/{field}={value} method = Get -- filter shops by 'field' equals 'value'
- http://localhost:8080/Practice/shops/search/{name} method = Get -- find shop by name
#Links for using: [CLIENTS]
- http://localhost:8080/Practice/client/{id} method = GET - get Client by id
- http://localhost:8080/Practice/client/all method = GET - get list of all Clients
- http://localhost:8080/Practice/client/add method = POST - save Client (comsumes client json)
- http://localhost:8080/Practice/client/update method = PUT - update Client (consumes client json to be updated)
- http://localhost:8080/Practice/client/remove/{id} method = DELETE - delete client by id
- http://localhost:8080/Practice/client/search?name=%name%&surname=%surname% method = GET - get Client with name=%name% and surname=%surname%
- http://localhost:8080/Practice/client/page?page=%page%&amount=%amount% method = GET - get client list on page=%page% and with %amount% clients on page
#Links for site pages:
- http://localhost:8080/Practice/#/home - Main Page
- http://localhost:8080/Practice/#/stuff - List of Products
- http://localhost:8080/Practice/#/character - Characteristic of chosen product
- http://localhost:8080/Practice/#/user/backet - User's cart (User links on the sidebar)
- http://localhost:8080/Practice/#/admin/users - Admin's Page (Admin links on the sidebar)