This is the API for the WellPartner Inventory App. The system keeps track of their items: Units, Assemblies, Subassemblies and Parts.
- Units consists of Assemblies
- Assemblies consists of Subassemblies and/or Parts
- Subassemblies consists of Parts
This section contains information about the API endpoints.
- CRUD for item template categories such as bolt, electrical etc.
- Add documents to an item template or item using Azure Blob Storage
- Get documents for an item template or item
- CRUD for document types to describe documents
- CRUD for items
- Get items containing search string
- CRUD for item templates containing common data for items
- CRUD for lists containing items
- Add/remove items in lists
- CRUD for item locations to keep track of where they are located
- CRUD for pre checks for when adding an item
- CRUD for sizes belonging to an item template
- CRUD for users of the system
- CRUD for vendors to know where the items are bought from
- C#
- ASP.NET Core
- Entity Framework Core
- REST API
- Azure App Service with Entra authentication and authorization
- Deployment to Azure using GitHub Actions
Clone and Run the API Application:
- Clone the repo
- Navigate to project folder:
inventory-api
- Run the API:
dotnet run
- Use Swagger for endpoint documentation:
http://localhost:5026/swagger/index.html
Issues should have the following format:
- Type: Use one of the following prefixes to specify the nature of the change:
- feat for new features or enhancements.
- fix for bug fixes.
- chore for routine tasks or maintenance.
- refactor for code restructuring.
- Descriptive Text: Add a concise descriptive text.
If applicable, also give the issue a label.
Example
fix: Failed to Login BrowserAuthError
Make sure to run
dotnet format inventory-api.sln
before creating pull requests.
Branches should have the auto-generated name given to branches created from issues.
Example
205-fix-failed-to-login-browserautherror
After changing your database models or model configurations run the following command:
dotnet ef migrations add <NameOfChanges>
dotnet ef database update (or start the solution)
To undo migration, run the following command:
dotnet ef migrations remove
dotnet ef database update (or start the solution)
or:
dotnet ef database update <NameofMigrationYouWantToRevertTo>
dotnet ef migrations remove (will remove all migration after the one you reverted to)