gun-lender's People
gun-lender's Issues
health_check endpoint
Gun CRUD endpoints
Using CrudHandler will be convinient.
Adding/updating and deleting guns must be restricted to the administrator account only.
Restrict ammo actions to admin only
The following actions should be restricted to administrators only:
Use https://github.com/0xf4lc0n/gun-lender/blob/d620206a4f8f4d16b180467dc6015b4f07776e2c/src/main/java/gunlender/server/routes/GunController.java as reference.
Ammo CRUD endpoints
Using CrudHandler will be convinient.
Adding/updating and deleting ammo must be restricted to the administrator account only.
login endpoint
register endpoint
Lending CRUD endpoints
Using CrudHandler will be convinient.
Every logged user can lend a weapon with the appropriate ammunition (if both are available).
Logged users can view/edit and delete their lending of weapon.
Administrator can view/edit and delete all lending entries.
getUserByLogin
Placeholder solution for userRole header - to delete (?)
Additional placeholder for getting userRole - necessary for displaying correct navbar after signIn.
HashPassword service
getUserByEmail
User CRUD endpoints
Using CrudHandler will be convinient.
Adding a new user will be handled by the register endpoint. We can make a redirection from POST /api/user to POST /register.
Users can be retrieved only via ID (/api/user/{id}).
Normal users can edit and delete their account.
Administrators can edit and delete all accounts.
Typos in method names
Instead of NoneExisting there should be NonExisting.
All guns is for auth users only
All guns endpoint can also be for non-auth user
UNIQUE Constraint for entities' columns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.