Git Product home page Git Product logo

cook's Introduction

coOk!

Hybrid mobile app built in Ionic

version 1.5.0

description

The application server exposes the REST API to get access to a MongoDB database of about 28000 recipes. The mobile application uses the API to register the application into the system and to get the recipes filtered with differents types of queries. The web server is deployed with a simple client to permit the authentication and registration operations by the web users. The web server is developed by Node.js version 6.9.1 and the mobile app is an hybrid application built by Cordova/Ionic 2 framework.

Web server API

  • [GET] /api/recipes?access_token=<access-token>
    case 200: [{
    "name": String,
    "type": String,
    "mainIngredient": String,
    "persons": Number,
    "notes": String,
    "ingredients": [String],
    "preparation": String,
    "id": String
    },
    //other objects
    ]

    case 401: {
    "error": {
    "name": "Error",
    "status": 401,
    "message": "Autorizzazione richiesta",
    "statusCode": 401,
    "code": "AUTHORIZATION_REQUIRED",
    "stack": String
    }
    }

  • [POST] /api/appauth/register
    accetta: <data> Object;
    { token: String, available: Boolean, platform: String, version: String, uuid: String, cordova: String, model: String, manufacturer: String, isVirtual: Boolean, serial: String }

    case 401: {
    "error": {
    "name": String,
    "status": Number,
    "message": String,
    "statusCode": Number,
    "stack": String
    }
    }

    case 500: {
    "error": {
    "name": String,
    "status": Number,
    "message": String,
    "statusCode": Number,
    "stack": String
    }
    }

    case 200: {
    "results": String
    }

  • [POST] /api/appauth/login/:appId
    accetta: { "uuid": String }

case 200: {
"results": String
}

case 404: {
"error": {
"name": String,
"status": Number,
"message": String,
"statusCode": Number,
"stack": String
}
}

case 500: {
"error": {
"name": String,
"status": Number,
"message": String,
"statusCode": Number,
"stack": String
}
}

  • [POST] /api/recipes/ingredients-calculation?access_token=<access-token> accetta: { "numberOfPersons": Number, "recipeName": String }

case 200: { "persons": Number, "ingredients": [String] }

case 400: { "error": Object }

case 404: { "error": Object }

case 500: { "error": Object }

cook's People

Contributors

trytomakeit1 avatar g3k0 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.