devondragon / SpringUserFramework

Easy User Management Framework/Starter App for Spring. Providing registration, login, logout, and more built on top of Spring Security.
Apache License 2.0
88 stars 28 forks source link

Unify API response and error handling across the framework #30

Closed devondragon closed 1 year ago

devondragon commented 1 year ago

When I first wrote this I intentionally used differing approaches to API responses and error handling in particular, to showcase how you could do it differently, etc.. However I now realize that this project should standardize on a single approach, and use it universally, to make this project easier to just USE to build a new application.

create-issue-branch[bot] commented 1 year ago

Branch issue-30-Unify-API-response-and-error-handling-across-the-framework created!

devondragon commented 1 year ago

I am updating the JSONResponse class to use the Builder approach instead of constructors to make things clearer. Also adding a typeless data Object to allow for arbitrary data in the response.

devondragon commented 1 year ago

Going to merge this in to get a fix for unprotectedURIs merged to main ASAP. I think the API work largely good as well.

devondragon commented 1 year ago

Merged to main