Skip to content

Lewis Moten

Unveiling the Code: Institutional Memory & Obsessions

    • Chronicles
    • Career
      • Awards
      • Causes
      • Certifications
        • Animal Certifications
        • Civics Certifications
        • Communication Certifications
        • Health Certifications
        • Religious Certifications
        • Technical Certifications
        • Vehicle Certifications
      • Courses
      • Digital Solutions for Small Businesses
      • Education
      • Experience
      • Organizations
      • Projects
      • Publications
      • Resume
      • Skills
      • Sponsorships
      • Volunteering
    • Community
      • Events
      • Faith
        • Ordination
      • Family
      • In The News
        • Civic Engagement & Public Record
        • Community & Creative Life
        • Library Stewardship
        • Professional Life
        • Student Years
      • Public Comment
      • Residence
      • Ribbon Cuttings
    • Hobbies
      • Audio
        • Podcasts
          • Blue Hair Podcast
          • Dreamy Audio Podcast
      • CitiCar
      • Creativity
        • 3D Modeling & Printing
        • Graphic Design
        • Maker & DIY
        • Painting
        • Sewing
        • Software & Apps
        • Website Templates
      • Electronics
        • Microcontrollers
        • Vintage CPUs
      • Games
        • Arcade Cabinets & Game Consoles
        • Board Games
        • Dice Collections
        • Tabletop Game Design
        • Video Games
      • Performance Arts
        • Balloon Sculptures
        • Clowning
        • Magic
        • Music
        • Paws of Wonder
      • Writing
        • 100 Word Stories
        • Correspondence
        • Public Commentary
    • About
      • Lewis Moten
      • Contact
      • Digital Identity
        • Infrastructure & Legacy
      • Site Purpose
      • Disclaimer
      • Privacy Policy
    • Search
      • Archives
      • Categories List
      • Classic Search
      • Cognitive Search
      • Tag Cloud
Lewis Moten > API Endpoints

  • Overcoming Challenges in Building an API with RTK Query
    October 8, 2024
    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
    October 4, 2024
    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

  • Drag and Drop Reordering with RTK Query and PHP
    October 1, 2024
    Drag and Drop Reordering with RTK Query and PHP

    Today’s work focused on implementing drag and drop functionality, improving error handling, and refining API endpoints. Key features include a new item creation dialog, item reordering, and enhanced error reporting with stack traces. Backend changes involved refactoring API methods, handling server-side item movement, and using appropriate HTTP status codes. Additionally, the frontend was updated with… Read More

  • RTK Query
    September 29, 2024
    RTK Query

    I transitioned my Redux application to use RTK Query for API calls. This reduced the need for selectors and simplified data management. While RTK Query is powerful, it has limitations like needing many endpoints for a single server and requiring complex TypeScript types for builders. Sagas are still used for specific cases like handling drag-and-drop… Read More

  • Queue Downloads
    September 6, 2024
    Queue Downloads

    I created @codejamboree/web-requests-queue, a library that queues and spaces out HTTP requests to prevent server overload, with features like pausing, resuming, and downloading files or parsing JSON. I also developed a basic testing platform with function mocks and expectations. The library is available on GitHub and npm. Read More

  • Separating Services
    June 15, 2024
    Separating Services

    Changes were made to store the secrets in a separate database rather than a JSON file to allow scalability and portability. An initial design had setup an over-engineered system for an enterprise. Then it was simplified, and further normalized. Read More

Copyright ©1994-

2026

 Lewis Edward Moten III. All rights reserved.

Disclaimer

Privacy

Contact

Cards and correspondence are welcome at Post Office Box 202 in the Town of Front Royal, Warren County, Commonwealth of Virginia, United States of America.

Proudly Powered by WordPress

 Ask My Content

Loading Comments...