Giter VIP home page Giter VIP logo

operacionquasar's Introduction

Operación Quasar

Deployed in HEROKU

https://operacion-quasar-jpq.herokuapp.com/

Servicios

POST /topsecret Example request body:

{
	"satellites": [
		{ 
			"name": "kenobi"
			"distance": 100
			"message": ["este", "", "", "mensaje", ""]
		},
		{
			"name": "skywalker",
			"distance": 115.5,
			"message": ["este","", "un", "", ""]
		},
		{
			"name": "sato",
			"distance": 142.7,
			"message": ["","es","", "", "secreto"]
		}]
}

If the request body is incorrect, a 400 response code will be sent.

Example response body:

{
	"position": {
		"x": -487.2859,
		"y": 1557.0142
	},
	"message": "este es un mensaje secreto"
}

200 OK

GET /topsecret_split/

This method uses cookies to retrieve the values already sent. If 3 values exist, the response can be successful. Otherwise, a 409 response code will be sent, as there is not enough information to calculate the result.

Example response body:

{
	"position": {
		"x": -487.2859,
		"y": 1557.0142
	},
	"message": "este es un mensaje secreto"
}

200 OK

POST /topsecret_split/{satellite_name}

This method uses cookies to store the values sent

Example request -> /topsecret_split/{satellite_name} Body:

{
	"distance": 400,
	"message": ["este", "", "", "mensaje", ""]
}

If the request body is incorrect, a 400 response code will be sent.

Example response body:

"Se guardó la información del satelite!"

200 OK

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.