Cars Auction hello

WebTech - REST API_Assignment 1

Keith_487130
Saxion 2020_Richard

Note: API requests file for intelliJ is in ../assignment1/rest.rest

1. Display a list of auctionable products or services

GET apiServer/api/cars

2. Of each of these products or services show at least the following:

GET apiServer/api/cars

3. It should be possible to search the list of auctions

GET apiServer/api/cars/2



4. The list of auctions should be filterable on at least three attributes that are logical for the chosen service or product. I.e.:

Get resource by. I.e.:

5. I want to be able to place a bid on an auction

PUT apiServer/api/cars/1/bid







6. I want to be able to remove my bid

DELETE apiServer/api/cars/2/bid





7. I want to see a list of all auctions I won

GET apiServer/api/users/2



8. As an administrator I want to be able to add, remove and modify auctions

POST apiServer/api/cars

















8. As an administrator I want to be able to add, remove and modify auctions

DELETE apiServer/api/cars/2



8. As an administrator I want to be able to add, remove and modify auctions

PUT apiServer/api/cars/1



















9. As a user I want to be able to register (emailaddress and password)

POST apiServer/api/users









10. As an administrator and user I want to be able to log in

POST apiServer/api/auth

user account: myusername / 123456
admin account: userred / password





Check if user logged in

GET apiServer/api/auth

Logout

DELETE apiServer/api/auth

show all users as admin user

GET apiServer/api/users