Giter Club home page Giter Club logo

orange-talents-challenge's Introduction

Orange-Talents-Challenge

REST API that will need to control user vehicles.

Rules:

-User registration, with the following required fields: name, e-mail, CPF, and date of birth; e-mail and CPF must be unique. -Vehicle registration, where the following are required: Brand, Vehicle Model, and Year. And the service must consume FIPE's API (https://deividfortuna.github.io/fipe/) to obtain the vehicle's value data based on the information entered. -Endpoint that will return a user with a list of all his registered vehicles.

You should build 3 endpoints into this system, the user endpoint, the vehicle endpoint, and the vehicle list for a specific user.

In the endpoint that will list your vehicles, we must consider some settings to be displayed to the end user. We will create two new attributes in the car object, these being:

1.) This car's rotation day, based on the vehicle's last year number, considering the conditionals: End 0-1 End 2-3: Tuesday Final 4-5: Wednesday Final 6-7: Thursday Final 8-9: Friday

2.) We must also create an active rotation attribute, that compares the current system date with the previous conditionals and, when it is the active day of the rotation, returns true; otherwise, false.

Example A: today is Monday, the car is a Fiat Uno model from 2001, which means that its rotation will be on Mondays and the active rotation attribute will be TRUE. Example B: today is Thursday, the car is a Hyundai car, model HB20 from the year 2021, which means that its rotation will be on Mondays and the active rotation attribute will be FALSE.

  • If the entries are correct, the Status 201 must be reset. If there are data entry errors, the Status must be 400.
  • If the search is correct, you must return Status 200. If there is an error in the search, return the appropriate status and a friendly error message."

orange-talents-challenge's People

Contributors

wellingtonsb avatar

Stargazers

 avatar

Watchers

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