Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JereRamirez/DecoderAPI

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decoder API

Decoder is an application that decodes the message intercepted and the position from a spaceship.

SATELLITES

This aplication counts with three satellites that intercept the message sent from the spaceship. They are located at:

Kenobi
     { x: -500, y: -200 }

Skywalker
     { x:  100, y: -100 }
      
Sato
     { x: 500, y: 100 }

ENDPOINTS

GET -> /secret_controller/topsecret_split

  • Returns the message and position of the spacechip based on the requests persisted in the database.

POST -> /secret_controller/topsecret_split/{satelliteName} with Body like:

          {
            "distance": 200.0,
            "message": ["este", "", "", "mensaje", ""]

          }
  • Adds a request to the database for the satellite.

POST -> /secret_controller/topsecret with Body like:

          {
            "satellites": 
            [
                {
                  "name": "kenobi",
                  "distance": 200.0,
                  "message": ["este", "", "", "mensaje", ""]
                },
                {
                  "name": "skywalker",
                  "distance": 470.4,
                  "message": ["", "es", "", "", "secreto"]
                },
                {
                  "name": "sato",
                  "distance": 880,
                  "message": ["este", "", "un", "", ""]
                }
              ] 
            }
  • With this request you get a valid response with response status 200 OK with Body:
        {
          "position": {
              "x": -367.7332,
              "y": -49.98171
          },
          "message": "este es un mensaje secreto"
        }

ALGORITHMS

  • The message is built with Backtracking.
  • The position is obtained with Trilateracion.

HOST

The application is host on: https://alliancedecoder.herokuapp.com/

It does not have a user interface but all endpoints are available.

Available improvements

  • It was not a requirement but all the services for a Satellite and Satellite Request ABM are created, only a controller needs to be added for those endpoints.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.