Skip to content

Latest commit

 

History

History
62 lines (32 loc) · 919 Bytes

README.md

File metadata and controls

62 lines (32 loc) · 919 Bytes

CarParkingApi

Application emulating car parking with API service

REST API

Cars

  • List of cars (GET)

GET /api/Cars

  • Car details (GET)

GET /api/Cars/1

  • Remove car (DELETE)

DELETE /api/Cars/1

  • Add car (POST)

POST /api/Cars

Parking

  • Number of free spaces (GET)

GET /api/Parking/freespaces

  • Number of taken spaces (GET)

GET /api/Parking/takenspaces

  • Total revenue (GET)

GET /api/Parking/balance

Transactions

  • Display Transactions.log (GET)

GET /api/Transactions

  • Transactions for the past minute (GET)

GET /api/Transactions/pastminute

  • Transactions for the past minute for a concrete car (GET)

GET /api/Transactions/pastminute/1

  • Income for the past minute (GET)

GET /api/Transactions/income

  • Income for the past minute for a concrete car (GET)

GET /api/Transactions/income/1

  • Replenish car balance (PUT)

PUT /api/Transactions/replenish/1