Open DanielRHolland opened 5 years ago
Name TYPE params return description/notes
GET productId: String productInformation: ProductInformation Gets the product information for a product, but only returns the information that the user is authorised to view
GET productId: String quantity: int After being given productID returns quantity remaining of this product.
POST productId: String quantity: int transactionId: int
GET dateFrom: Date purchaseOrder: PurchaseOrder Currently unsure of exactly what purchaseOrder will contain.
PUT transaction: Transaction This adds a new transaction to the transaction log if none exists with the id, otherwise updates the existing one.
DELETE transactionId: String Given a transactionId system will delete transaction from log.
~### Edit Transaction~ ~PUT~ ~productId: String~ ~quantity: int~ ~transactionId: int~
PUT productName: String productId: String productDesc: String quantity: int
DELETE productName: String productId: String productDesc: String quantity: int
PUT productId: String, quantity:int Given productId and new quantity, this will create add new quantity value
GET
dateFrom: Date, currentDate: Date
List
PUT username: String, password: String Given userName and password will add a new user to the system.
DELETE userName Given username system will delete corresponding user from system
PUT currentUser: User, newUser: User Given a current user will replace details with that of a new user.
GET userId:String, hashOfPassword: String apiKey: String
GET
num: int (default=10), searchTerms: List
Created example Web Method See: https://github.com/DanielRHolland/AADGroupProject/commit/29fae7246a10f05b09d6cbf229ca164cdbb2e67e
Create purchase order: Is a GET as does not write data to database.. just gets needed data and outputs to user.
PurchaseOrder class not defined so getPurchaseOrder POJO skipped
Added all object I thought of working through web methods.
What would user object store? Would we store actual password, or password that has been hashed?
@DanielRHolland Would you say this issue is now ready to be closed?
List WebMethods with Params and returned JSONs.
Create REST API 'Hello World'