Skip to content

This project is a Blog API developed using C# and SQL. It provides a RESTful API for managing blog articles and authors.

Notifications You must be signed in to change notification settings

doaasa/Blog_API_.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blog_API_.NET

This project is a Blog API developed using C# and SQL. It provides a RESTful API for managing blog articles and authors.This README file serves as a guide to understand and work with the project.

Prerequisites

1- Microsoft Visual Studio.
2-.NET Core.
3- Entity Framework Core.
4- SQL Server or compatible database.

Getting Started

To get started with the Blog API Project, follow the steps below:

1- Clone or download the project repository.
2- Open the solution file "Blog API Project.sln" in Microsoft Visual Studio.
3- Restore the NuGet packages for the solution.
4- Update the database connection string in the appsettings.json file to point to your SQL Server or compatible database.
5- Build the solution to ensure all dependencies are resolved successfully.
6- Run the project to start the API.

Configuration

The project uses the "appsettings.json" file to store configuration settings. Make sure to update the following settings based on your environment:

ConnectionStrings:"BlogCON" : Update the connection string to point to your SQL Server or compatible database.

Project Structure

The project follows a typical ASP.NET Core Web API structure with the following main components:
1- Models: Contains the entity models for blog articles and authors.
2- Repository: Implements the repository pattern with interfaces for data access.
3- Controllers: Contains the API endpoints for managing blog articles and authors.

Assets File:

  • SQL Scheme for the Database implementation.

Additional Information

The project uses Entity Framework Core for database operations. Make sure to run the necessary migrations to create or update the database schema. Cross-Origin Resource Sharing (CORS) is enabled to allow requests from any origin. You can modify the CORS policy in the Program.cs file if needed.

API with swagger

Watch the Video

Blog.API.-.Work.-.Microsoft.Edge.2024-01-20.19-50-56.online-video-cutter.com.mp4

Support

If you encounter any issues or have any questions, please contact the developer.
To contact Developer:

About

This project is a Blog API developed using C# and SQL. It provides a RESTful API for managing blog articles and authors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages