Releases: Sam7367238/scp-foundation-api
Release list
0.6.1
2 small things, in the application.yaml file, the bucket field will use a default instead of requiring a .env configuration. Every entity now uses the @Table annotation to identify the table for each entity.
0.6.0
This release brings quite a bit, not many changes to the application itself, but significant changes to the infrastructure.
- Added Terraform to handle the bucket setup
- Imported the AWS SDK
- Added an endpoint for creating & uploading media entities
- The length of the MIME Type column for the media table is extended, from 5 characters to 25 characters
So basically, this update introduces Amazon Web Services into the system.
I have a feeling it could use some refactoring, otherwise, implementation of the authentication shall begin.
0.5.1
This release fixes an issue with the email in password resets, the email did not contain the HTTP scheme, host, and the port in the link.
0.5.0
This release adds email delivery through the Java Mail Sender module to add the ability for a user to reset their password, let's go into detail:
- Set Up Email Delivery & Configurationn
- Created A RestorationToken Resource
- Added A New /password-resets Endpoint, It Validates the Email, Creates A RestorationToken for the User, And Sends the New Password Link Containing the UUID Of the Token
- Added A New /password-resets/{token} Endpoint, This Will Validate the RestorationToken, And Update the Password If Everything Goes Well
- Removed The /users/setup Endpoint Which Was the Same as Password Reset but Did Not Use Email Verification, Making the User Account More Vulnerable
- Deprecated The enableUserPassword() Method in the UserService, the sendPasswordResetEmail() And resetPasswordWithToken() Methods Are Recommended Instead
Note: The email that's sent in the /password-resets endpoint only contains a link, and clicking on it, by default will send a GET request, but the endpoint only has a POST method, it will require a front-end page that prepares the request through a form.
The next step is authentication, which might take a while, so stay tuned.
0.4.0
This release mainly brings a user setup endpoint to set up their password, and also makes the users' email addresses unique.
0.3.0
A bunch of new features have been added. Let's take a look!
- Imported MapStruct
- Implemented User Registration
- Added The Email Column To The Users Table
- Added A GlobalExceptionHandler
- Made All Requests Authorized
- Added User Mapper
Maybe more, these are just some highlights.
0.2.1
Make the clearance level in the users table non-nullable, I forgot to push.
0.2.0
Added 5 domains:
- Department
- Media
- SCP
- User
- UserDepartment
Each of these domains have their own entities and repositories.
3 new migrations:
- Version 8: Make the clearance level in the users table nullable
- Version 9: Add "joined" column to the user departments table
- Version 10: Make clearance level in users non-nullable
Imported Rest Assured and enabled show-sql in application.yaml.