-
Overcoming Challenges in Building an API with RTK Query
Building an API with RTK Query can be a rewarding experience, but it comes with its own set of challenges. One common hurdle is managing large apiSlice files, which can become difficult to maintain as the number of endpoints grows. To address this, I explored code splitting and modularizing endpoints, but these approaches introduced their… Read More
-
REST API Paths
When naming REST API paths, it’s important to follow best practices such as avoiding file extensions, using HTTP verbs like GET, POST, PUT, DELETE, and placing variable names in the path. Proper structuring of endpoints helps differentiate between collections and singletons, like using /api/users for a collection and /api/users/123 for a specific resource. Relationships between… Read More
-
Authentication Bearer
I created a login form and 2FA form, adding access controls to sensitive information within error logs. Endpoints were reconfigured to require a valid authorization header before allowing data to be returned. Read More


