Code Monkey home page Code Monkey logo

moviedbapi's Introduction

Overview

This is api application built with ASP.NET Core, Entity Framwork and SqlServer following the principles of Clean Architecture. It has the following functionalities

  • User can search list for movie, tv show and person.
  • User can request a record of movie, tv show and person with it's id.
  • It's store users search history in the database. for that user must provide a name with query parameter.

Technologies

  • ASP.NET Core 2.2
  • Entity Framework Core
  • Rest Sharp
  • Sql Server

Database Configuration

The Application uses data-store in SQL Server.

Update the ConnectionString.Default connection string within appsettings.json , so that application can point to a valid SQL Server instance.

  "ConnectionStrings": {
    "Default": "Server=(local);Database=TestDb;Trusted_Connection=True;MultipleActiveResultSets=true"
  }

When you run update-database command, the migrations will be applied and the database will be automatically created.

API Documentation

There are two endpoint in this application. First one is to search movie, tv show and people and other one is to view detail of a movie, tv show or people.

Api - https://localhost:44334/api/search

Parameters

  1. User (username should be provided to track user search history this is a must given query parameter)
  2. Key (This is the key for searching the list of movie, person or tv show )
  3. Type (Type should be movie, people or tv)
  4. Language (user can user language filter like ‘en-US’)
  5. Adult(if this query parameter is true then search will include adult search result. By default it is false)
  6. Page (this is to navigate different page of the search result)

Api - https://localhost:44334/api/record

Parameters

  1. User (username should be provided to track user search history this is a must given query parameter)
  2. Type (Type should be movie, person or tv)
  3. RecordId (To get the specific record this parameter should be provided)
  4. Language (user can user language filter like ‘en-US’)

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.