Skip to content

amandaungco/capstoneBuyNothingAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuyNothingAPI

This is a Java/SpringBoot API connected to a Postgres Database.

See https://github.com/amandaungco/BuyNothingMatcherApp for the mobile App/Interface.

Functionality

These are the API endpoints based on the MVP requirements for the capstone.

Users

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}

Offers

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}

Requests

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}

Exchanges

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}

Matches

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}

Installation

To download and edit this project:

  1. Clone this repository:
git clone https://github.com/amandaungco/capstoneBuyNothingAPI.git
  1. Run mvn install to install dependencies.

  2. From the root directory mvn spring-boot:run to start the server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages