Skip to content

This API is a full-featured user management solution with a clear role model and comprehensive security system

Notifications You must be signed in to change notification settings

atomforevertoxic/UserFactoryCRUD_WebAPI

Repository files navigation

UserFactoryCRUD_WebAPI

swagger

Description

A .NET 9+ Web API service for user management with CRUD operations. The API is accessible through Swagger UI and features a role-based access control system (Admin/User) with various account operations.

Initial Setup

  1. Create default admin
    POST /api/Users/init-default-admin

Creates an administrator account with default credentials:

  • Login: Admin
  • Password: AdminPass123

description

3. Authentication

authentication

4. User Management

After authentication, all administrative endpoints become available.
crud

Important Security Notes

Authorization cookies persist after server restart. Always explicitly terminate your session:
POST /api/Account/logout

Data Models

models

Core Data Model

user

Requirements

  • .NET 9 or higher
  • Access to Swagger UI (/swagger)

Additional Features

  • Input data validation
  • Detailed error messages
  • JWT authentication support
  • Optional database integration

Conclusion

This project was developed as part of a technical interview process. During development, I gained expertise in:

  • Web authentication mechanisms
  • API design principles for web applications
  • Swagger configuration and management
  • Data transfer methods to endpoints using models

This intermediate-level challenge provided valuable opportunities to acquire new skills while enhancing existing competencies in API development!

About

This API is a full-featured user management solution with a clear role model and comprehensive security system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published