26Tanishk/smart-asset-management-api ? reverse-engineered prompt

Reverse engineered prompt

Build me a backend API for managing company assets and their maintenance.

I want it to let me create, view, update, and delete assets, and also add maintenance records for them. The app should enforce real world rules, like only active assets can go into maintenance, maintenance should automatically switch the asset to under maintenance, retired assets should not be reusable, and invalid status changes should be blocked. It should also support finding overdue assets, active assets, and basic filtering, sorting, and pagination when listing assets.

Please make it with FastAPI and SQLAlchemy, use SQLite for storage, and include clean request and response validation. I want the API to be easy to run locally with Swagger docs available, and it should follow a simple layered structure so the business logic stays separate from the routes and database code. If you need to check current FastAPI or SQLAlchemy docs online while setting it up, go ahead.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab