FastAPI & Laravel User REST API

Замовник: AI | Опубліковано: 24.11.2025

I need a clean, well-documented RESTful API that handles core user information — registration, login, profile updates, password resets, and simple role management. The stack is already defined: Python 3 with FastAPI on one service and PHP 8/Laravel on another. Your task is to design and code the endpoints so that both services expose identical behaviour and data structures, letting me switch traffic between them or run them side-by-side. Here is what I expect: • FastAPI service: async endpoints, Pydantic models, dependency-injected services, automatic OpenAPI schema. • Laravel service: controllers, resource routes, Form Request validation, and API authentication (Laravel Sanctum or Passport). • Shared deliverables: database migration scripts, clear README, Postman/Insomnia collection, brief deployment notes (Docker compose is fine), plus a small suite of unit tests on each side to prove the CRUD operations work. Data in scope is limited to user entities only, so no e-commerce or sensor payloads; keep the models focused and lean. Once both implementations return matching JSON payloads and the tests pass, I’ll consider the job complete and release payment.