Drone Series - DronePostion controller, service and swagger update

Register
Submit a solution
The challenge is finished.

Challenge Overview

Intro

In our drone api which can be found at https://github.com/topcoderinc/dsp-server we have a Model for Drone and DronePostion. They are both store the gps location of the drone however the Drone Model only stores the current position and when you update the position it creates a new record in the DronePostion. So yes you guessed it there is a mongo collection called drone and dronepostion.

The drone model has a swagger definition for GET POST and PUT however the GET is a getall drones.

Like we mentioned before the PUT for the drones/{id}, which is used to update the endpoint also creates the record in the dronepostion object.

For this first to Finish challenge we are looking for two things:

Query the drone postion /dronepostion/{id} by id to get the list of every position for that drone sorted by the newest first and also taking limit and offset as parameters. The corresponding dronepostion service, controller as well as update the swagger doc should also be completed.

Also we want to explicitly get the drone by id from the original /drone/{id} not just get all drones.

You can see a live swagger doc here if you want to take a look.

I will also include the .env file to the dev environment if you want to use the existing mogodb.

Thanks and good luck

kbowerma


  1.  

Project Background

For this series we are creating a Drone Service Platform (DSP) which consist of a marketplace where customers can request drone services for providers/operators. Examples of the services would be drone delivery, mapping, monitoring and many other tasks. In addition to delivering drone services we will also provide a level of traffic management.

Other notable challenges in this series

Maps React and REST
React Map Mission Plan
Mission Plan fixes part 1
WEBAPI - Consumer to DSP API Product Catalog - swagger API design

Links

front end src: topcoderinc/dsp-app
back end src: topcoderinc/dsp-app

 

 

Source: Github Issue #32



Final Submission Guidelines



     
  •  
    Upload all your source code as a zip for review
    Winner will be required to submit a pull request with their winning code.

ELIGIBLE EVENTS:

2017 TopCoder(R) Open

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30055878