Giter Club home page Giter Club logo

challenge's Introduction

Natue

Challenge for Backend Developer

A customer needs to search in our product catalog (available in this JSON) and he wants to find products that match your food restrictions. Based on this you will need to develop:

  • a simple API to search products in the .json available;
  • it should be possible to search for products by their specifications (one or more);
  • it must be possible to order the result by price (asc and desc);

The test should be done in PHP. We expect at the end of the test, outside the API running, the following items:

  • an explanation of what is needed to make your project work;
  • an explanation of how to perform the tests;

Remember that at the time of the evaluation we will look at:

  • Code organization;
  • Object-Oriented Principles;
  • Maintenance;

To send us your code, you must:

Make a fork of this repository, and send us a pull-request.

About the test

Requirements

• PHP 5.4 or higher

• Apache Server

About

This application was developed using the Laravel Framework in version 5.4 and implemented using Repository Pattern.

You can consult a guide on how to run the test by accessing a project root in the browser

http://localhost/

How to use

Products

http://localhost/api/products
Attributes

q

This attribute is used to filter products by their specifications. If it is necessary to send more than 1 specification the values can be separated by "+"

http://localhost/api/products?q=vegan+lactose-free

order

This attribute is used to set the order of products at the price. The values that can be used are ASC and DESC

http://localhost/api/products?order=asc

Url with both

http://localhost/api/products?q=vegan+lactose-free&order=asc

challenge's People

Contributors

edsonlimadev avatar

Watchers

James Cloos avatar Rodrigo Clemente 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.