Giter Site home page Giter Site logo

blasterjoni / nosi-dotnet-engineering-challenge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nosportugal/nosi-dotnet-engineering-challenge

0.0 0.0 0.0 27 KB

This is a small dotnet application that has CRUD endpoints and serves to test applicants knowledge.

C# 100.00%

nosi-dotnet-engineering-challenge's Introduction

Engineering challenge

Service

This is a dotnet service that will do all the CRUD methods to a database.

The implementation is made for the database to be slow and very simple.

There are 2 endpoints that are not implemented POST /api/v1/Content/{id}/genre and DELETE /api/v1/Content/{id}/genre.

The Challenge

We want you to fork this repository and try solve the following tasks. (Remember that you cannot change the SlowDatabase.cs)

Task 1

Implement the missing endpoints:

  • POST /api/v1/Content/{id}/genre
    • This endpoint is supposed to add new genres. This should not allow repeated genres to be listed.
  • DELETE /api/v1/Content/{id}/genre
    • This endpoint should delete genres.

Task 2

When the service is runnning in production we have no way of knowing what's happening in the service. Add logging to the service that you think will give us enough information to know what's happening, but not overload the amount of logging when in Production.

Task 3

You team has the freedom to choose a new database. Make the necessary changes to adapt to this new connection. (You can choose any tecnology, e.g., Mongodb, Redis, Cassandra, CouchDB, MySQL, etc...)

Task 4

While your new tecnology isn't Production Ready the SlowDatabase is really slow (and you cannot change the class). Find a way to speed up the endpoints without modifying the SlowDatabase.cs.

Task 5

The Project does not have any unit testing, add tests that guarantee that everything works as expected.

Task 6

We want to deprecate the GET /api/v1/Content which always returns all the contents. Create a new endpoint that deprecates this and implements a way to filter the contents by Title and/or Genre. (The filter condition can be something as simple as substring and a contains).

nosi-dotnet-engineering-challenge's People

Contributors

blasterjoni avatar rcarvalho8998 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.