An open API service indexing awesome lists of open source software.

https://github.com/2014-javafs/celestial_emporium_backend


https://github.com/2014-javafs/celestial_emporium_backend

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Welcome to Celestial Emporium
Proudly Serving the Sword Coast since 2024.

This application is the backend half of an API meant to bring sellers and buyers together
to facilitate the exchange of coin and items, both magic and mundane.

To ensure the proper functioning of this backend, you will need:



  • A frontend solution (please see our frontend project if you'd like to use it).

  • An application.properties file including access to a postgreSQL database of your choice.

  • A postgreSQL database with a defined structure laid out as in the attached ERD (or one generated by Spring Data).

HTTP requests sent to this API should conform to the RESTful standard.

MemberType has the following tier structure/privileges that will need to be passed using a header.



  1. Waukeen, Goddess of Commerce, has unrestricted privileges including deletion of database.

  2. Administrator may delete user account or alter privileges. They may also delete items (as opposed to item listings) from the catalog.

  3. Seller (default registered user) can create listings via a POST request so long as it references an existing item in the items table as well as update their own listings.

  4. Buyer (restricted registered user) can simply create a cart and purchase a transaction.

  5. Unregistered. (memberType=null) Can view inventory and user profiles (GET requests only).