Starting from:

$25

API-Online Shopping Solved

Objective
 

Cairo University, Faculty of Computers and Artificial Intelligence

 

The purpose of this project is to introduce students to Web Services development using redhat RESTful Java Web Services. In assignment solutions, students shall demonstrate how this technique can be used to construct interoperable software modules in service environments implemented by Java and tested using Postman application.

System Description
Implement an API online shopping website where customers can register, login and purchase items online.

System EJBs:

Customer, Item and Order
Item has: id, name

Order has: customer, list of items

Customer has: id, username, password, role (admin or customer), list of orders.

 

Service

The Service has a list of customers and admins. Ø The Service exposes the following end points:For the admin: register loginAsAdmin CreateAnItem ViewOrdersByCustomerId
viewAllOrders blockCustomer

getRoleofCurrentUser

 

For the customer: register loginAsCustomer createOrder (list of Items) viewOrderByID  ViewAllCustomerOrders
getRoleofCurrentUser

 

Project – Redhat REST Web Services          Computers and Cairo University, Faculty of Artificial Intelligence

System Testing
The input and output of all functions that takes entities as parameters or return entities should be of type JSON Objects
The Service must use persistence (database) not just in memory data.
Testing the api will be done through post man.
For example, to test createAnItem: suppose the url is localhost:8080/myproject/api/createAnItem
And the body is a JSON Object as {“name”:”sunglasses”} // an item

The return type may be a “success message” as a string or as a JSON Object

More products