Giter Site home page Giter Site logo

tp2entregafinal's Introduction

(El formato acá está un poco roto, se ve mejor en el archivo documentacion.txt)

tp2entregafinal

Entrega final de TP 2 ORT 2020


Nombre, descripción, y características de cada recurso


{ "_id": String, "mail": String, "condition: float, "symbol": String }

Property name Value Description

_id String Unique random value generated when a new subscription is created to identify it mail String The subscriber e-mail. Must contain an @ condition float It sets the value above which the subscriber wants to be notified. Must be a number. It can contain decimals. Must be a number above 0. symbol String It's a three characters String that identifies the crypto to which the subscriber is being subscribed.


Nombre, ruta y descripción de cada método


Subscriptions: create

POST localhost:3000/api/subscription/

Parameter name Value Description

Required query parameters

mail String The subscriber e-mail. Must contain an @ condition float It sets the value above which the subscriber wants to be notified. Must be a number. It can contain decimals. Must be a number above 0. symbol String It's a three characters String that identifies the crypto to which the subscriber is being subscribed.

Subscriptions: delete

DELETE localhost:3000/api/subscription/

Parameter name Value Description

Required query parameters

_id String Unique random value generated when a new subscription is created to identify it.


Características de la petición y respuesta de cada método


Subscriptions: create

POST localhost:3000/api/subscription/

It creates a new subscription. A succesful response will have a json with a message informing if the subscription was created. In case there was a problem, you will get a json with an error message. Most common error messages are: "The mail must contain an @" "The condition must be a number above 0" "The symbol must be a string of 3 characters"

Subscriptions: delete

DELETE localhost:3000/api/subscription/

It deletes an existing subscription by providing an id. A succesful response will be a json with a message informing that the subscription was deleted. In case there was a problem, you will receive a json with an error message. Most common error messages are: "The subscription does not exist"

=================================================================================== Posibles códigos de estado/error que puede devolver el servidor, y sus significados

Code Description

200 Everything worked as expected 400 There was an error validating the provided parameters 404 Not found 500 Internal server error 520 Unknown error

tp2entregafinal's People

Contributors

ramprog avatar

Watchers

 avatar

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.