This is a Java/SpringBoot API connected to a Postgres Database.
See https://github.com/amandaungco/BuyNothingMatcherApp for the mobile App/Interface.
These are the API endpoints based on the MVP requirements for the capstone.
List of all users
GET /users
Add a new user
POST /users
Edit an existing user
PUT /users/{userId}
Delete an existing user
DELETE /users/{userId}
List of all offers
GET /offers
Post a new offer
POST /users/{userId}/offers
Edit an existing offer
PUT /users/{userId}/offers/{offerId}
Delete an existing offer
DELETE /users/{userId}/offers/{offerId}
List of all requests
GET /requests
Post a new request
POST /users/{userId}/requests
Edit an existing offer
PUT /users/{userId}/requests/{requestId}
Delete an existing offer
DELETE /users/{userId}/requests/{requestId}
List of all exchanges
GET /exchanges
Post a new exchange
POST /exchanges
Edit an existing exchange
PUT /exchanges/{exchangeId}
Delete an existing exchange
DELETE /exchanges/{exchangeId}
List of all matches
GET /matches
Post a new match
POST /matches
Edit an existing match
PUT /matches/{matchId}
Delete an existing match
DELETE /matches/{matchId}
To download and edit this project:
- Clone this repository:
git clone https://github.com/amandaungco/capstoneBuyNothingAPI.git
-
Run
mvn install
to install dependencies. -
From the root directory
mvn spring-boot:run
to start the server.