Giter Club home page Giter Club logo

codechallenge's Introduction

Code Challenge

Code Challenge: creating a RESTful service consuming SpaceX's API.

This code challenge was completed using ASP.Net Core 2.1 and exposes the data from SpaceX's Launch Data API. The main goal of the challenge was to create a RESTful API that would expose the data from SpaceX's API. However, the program would have to be designed in a way so that, if the data source were to be changed to a database, then the application would still function the same without much, if any, refactoring. I believe that I have completed this challenge accordingly. Assuming that the database provided shares the same context of my application, the only necessary changes would be inputting the connection string and removing a few comment tags. This is possible using Dependency Injection and a bit of abstraction.

Necessary Changes

  1. Input connection string:

appsettings

  1. Remove comments tag to allow the DbContext to be injected:

di

  1. Remove comment tag to inject into the API's constructor:

parameter

  1. Remove the comment tag to set the class variable:

setting

After these small changes, the solution will continue to function as if no changes were made.

codechallenge's People

Contributors

cryptochrisjames avatar

Watchers

 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.