Giter Site home page Giter Site logo

pandora-intelligence-assessment's Introduction

Pandora intelligence assessment

This project was developed as an assessment for Pandora Intelligence. It integrates with an Open Data API and an Entity Framework Core InMemory Database. Whenever a call is made to retrieve vehiclevoertuigsoort information, the information is persisted in the database if the vehicle is found. If the vehicle is not found, the user will receive a NotFound. This allows users to search for previously searched vehicles in the local database. The project includes both unit and integration tests to ensure quality.

Prerequisites

Before you can run the project, you must have the following software installed on your machine:

  • .NET 7 SDK
  • Docker

Running the project

To run the project, follow these steps

1.Clone the repository to your machine

git clone https://github.com/douglassantanna/pandora-intelligence-assessment

2.Navigate to the project directory

cd pandora-intelligence-assessment

3.Build the Docker image:

docker build -t pandora-api .

4.Run the Docker container

docker run -p 8080:80 pandora-api

Making HTTP calls

To make an HTTP call to the API, you must include the following key in the header:

"Pandora-Api-Key": "pandoraassessment"
  • To make an HTTP call to the API in this project, you can: copy and paste the following URL in your browser
http://localhost:8080/swagger/index.html
  • use Postman, or any API platform, to make GET calls to the following URLs:
http://localhost:8080/api/pandora/place-here-the-vehicle-plate
http://localhost:8080/api/pandora/addedvehicles?pageSize=10&pageIndex=0&sort=asc

Note that the response is paginated, which means you can adjust the number of vehicles displayed per page, as well as change the page index.

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.