Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 2.72 KB

File metadata and controls

44 lines (28 loc) · 2.72 KB

PriceNegotiationApp

Technologies

Csharp dotnet entityframework XUnit


Project Description

PriceNegotiationApp is a backend project built using ASP.NET Core Web API. The application also utilizes Entity Framework and xUnit. It is designed exclusively as an API-only service. It enables customers to negotiate prices with online store staff, offering data management through CRUD operations. Up to 3 proposal retries are allowed within the negotiation process. If a proposal is more than double the base price, it's auto-rejected.

Customers may register, log in, request data about products, open up price negotiation regarding a product, propose a price for 3 times. Shop staff may add products, view negotiations, accept or deny the proposed price. Administrator is privileged to manage data, inluding user data.

API Endpoints

obraz

API Documentation

The documentation in .json format is located in the PriceNegotiationApp.Api.json file.
To visualize and interact with the documentation using Swagger UI launch the API project or upload the PriceNegotiationApp.Api.json file on the https://docs.scalar.com/swagger-editor or https://editor-next.swagger.io/ or https://redocly.github.io/redoc/.

Default accounts

Login Password Role
admin@app.com Admin123! Admin
Staff1@app.com Staff123! Staff

Security

The API is secured with JWT authorization. Some non-secretive HTTP GET endpoints have been allowed anonymously. The other require authorization based on user role.

License

This project is licensed under the Apache License 2.0