Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[$350] Drone Series DronePostion controller and service #32

Open
kbowerma opened this issue Dec 3, 2016 · 2 comments
Open

[$350] Drone Series DronePostion controller and service #32

kbowerma opened this issue Dec 3, 2016 · 2 comments

Comments

@kbowerma
Copy link
Contributor

kbowerma commented Dec 3, 2016

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:

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

  2. 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. To

Requirements

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

Submission Guidelines

  1. Ensure good test coverage on all modules
  2. Upload documentation for how to run your submission
  3. Upload all your source code as a zip for review
  4. Winner will be required to submit a pull request with their winning code.
  5. Please include a video with your submission. If you are not comfortable with spoken english feel free to annotate with text.
@kbowerma
Copy link
Contributor Author

kbowerma commented Dec 3, 2016

Failed to create challenge
Status code: 503
Response body:

"<!DOCTYPE html>\n\t<html>\n\t  <head>\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Application Error</title>\n\t\t<style media=\"screen\">\n\t\t  html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t  }\n\t\t  html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t  }\n\t\t  iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t  }\n\t\t</style>\n\t  </head>\n\t  <body>\n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\"></iframe>\n\t  </body>\n\t</html>"

@kbowerma
Copy link
Contributor Author

kbowerma commented Dec 3, 2016

Challenge created successfully
Challenge Url: https://www.topcoder.com/challenge-details/30055878/?type=develop&noncache=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant