Code Monkey home page Code Monkey logo

pennyana / doctor-who-web-apis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from othmanmohammad/doctor-who-web-apis

0.0 0.0 0.0 231 KB

This project is a .NET 7 Web API application that serves as a backend for managing Doctor Who related data. It supports CRUD operations for doctors, episodes, and authors, as well as adding companions and enemies to episodes. The application is built using Entity Framework Core for data access, AutoMapper for object mapping, and FluentValidation.

License: MIT License

C# 100.00%

doctor-who-web-apis's Introduction

Doctor Who Web APIs

A .NET 7 Web API project that provides endpoints to manage Doctor Who related data, such as doctors, episodes, authors, companions, and enemies.

Table of Contents

Description

This project is a .NET 7 Web API application that serves as a backend for managing Doctor Who related data. It supports CRUD operations for doctors, episodes, and authors, as well as adding companions and enemies to episodes. The application is built using Entity Framework Core for data access, AutoMapper for object mapping, and FluentValidation for input validation.

Required Knowledge

To work on this project, it is recommended to have familiarity with the following technologies:

  • C#
  • .NET Core
  • ASP.NET Core Web API
  • Entity Framework Core
  • AutoMapper
  • FluentValidation
  • Git

Prerequisites

  • .NET 7 SDK
  • SQL Server

Getting Started

  1. Clone the repository
git clone https://github.com/OthmanMohammad/Doctor-Who-Web-APIs.git
  1. Navigate to the project directory
cd DoctorWho
  1. Restore the required packages
dotnet restore
  1. Build the solution
dotnet build
  1. Run the DoctorWho.Web project
cd DoctorWho.Web
dotnet run

APIs

Doctors

  • GET /api/doctors - Fetches all doctors.
  • POST /api/doctors - Upserts a doctor and returns the upserted entity.
  • DELETE /api/doctors/{id} - Deletes a doctor by ID.

Episodes

  • GET /api/episodes - Fetches all episodes.
  • POST /api/episodes - Creates an episode and returns the new entity ID.
  • POST /api/episodes/{id}/enemies - Adds an enemy to an episode.
  • POST /api/episodes/{id}/companions - Adds a companion to an episode.

Authors

  • PUT /api/authors/{id} - Updates an author by ID.

Companions

  • GET /api/companions - Fetches all companions.

Enemies

  • GET /api/enemies - Fetches all enemies.

Project Structure

  • DoctorWho.Web - Web API project that exposes the endpoints and handles requests.
  • DoctorWho.Db - Data access layer with Entity Framework Core and repositories.
  • DoctorWho.Domain - Domain models representing the Doctor Who entities.

Technologies and Libraries

  • .NET 7 Web API
  • Entity Framework Core
  • AutoMapper
  • FluentValidation

Author

This project was developed by Mohammad Othman.

License

This project is licensed under the MIT License - see the LICENSE file for details.

doctor-who-web-apis's People

Contributors

othmanmohammad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.