[SOLVED] API Project – Redhat REST Web Services Objective

35.00 $

Category: Tags: , , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon online-shopping-0s7s0g.zip (594.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Project – Redhat REST Web Services Objective

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:

o For the admin: register

loginAsAdmin CreateAnItem ViewOrdersByCustomerId viewAllOrders blockCustomer getRoleofCurrentUser

o For the customer: register

loginAsCustomer createOrder (list of Items) viewOrderByID ViewAllCustomerOrders getRoleofCurrentUser

Project – Redhat REST Web Services System Testing

Cairo University, Faculty of Computers and Artificial Intelligence

  •   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

    Notes

  • online-shopping-0s7s0g.zip