This is a Social Network API project built using .NET Core and Entity Framework. The API allows developers to create a social network application by providing endpoints to manage users, subscriptions,static files etc.
- Clone the repository
git clone https://github.com/radimbig/Social_Network_API.git
- Go to the folder
cd Social_Network_API
- Run
dotnet restore
to install the necessary dependencies - Rename
appsettingsEXAMPLE.json
toappsettings.json
- It is recommended to replace the key in
appsettings.json
inJWT:KEY
- Update the connection string in
Program.cs
file to your MySQL Server instance - Run
Update-Database
in package manager console to update the database
dotnet run
in repository folder to run the API
All endpoints described in this postman workspace
For comfortable testing of the API, follow these steps in Postman:
- Import the provided Postman collection and environment.
- Register an account by using
Register
endpoint - Login and get tokin
- Update
Token
variable with your new token and use all endpoint that require authorization - Send requests to the API endpoints using the imported collection.
Login/Register ✔️
Subscriptions ✔️
Static files ✔️
Avatar uploading ✔️
Entity framework ✔️
FluentValidation
MediatR
Entity Framework
MySQL Database
Magick.Net
JWT-Authorization