GithubHelp home page GithubHelp logo

chickenkyiv / recipe-search-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 5.0 1.41 MB

Home Page: https://loopback-recipe-search.herokuapp.com/explorer/#!/Recipe/Recipe_find

License: GNU Affero General Public License v3.0

JavaScript 100.00%
loopback recipe-api search-interface

recipe-search-api's Introduction

recipe-search-api's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

recipe-search-api's Issues

create remote methods that will simplify stuff for querying routes.

So in order to get data about recipes, you can use swagger link: http://localhost:3000/explorer/#!/Recipe/Recipe_find
or
http://localhost:3000/api/recipe

it'll display a raw data about imported recipes.

This will give you a clear attributes list for particular recipe
http://localhost:3000/explorer/#!/Recipe/Recipe_prototype_get_attributesList
with id 5a8b57fc25b0113b4b961a0a
or
http://localhost:3000/api/recipe/5a8b57fc25b0113b4b961a0a/attributesList

id 5a8b57fc25b0113b4b961a0b

id 5a8b57fc25b0113b4b961a0c


Use this thing as visual for testing search functionality
#21 (comment)

Old information. Will update it later, maybe, this is why it here....


Recipe 1 & Recipe 4 has same attributes id=xxx

Recipe 1 & Recipe 2 has same attributes id=xxx

Recipe 2 & Recipe 3 has same attributes id=xxx

Recipe 3 & Recipe 4 has same attributes id=xxx

update attributes

attributes :
course : An array of the cources associated with this recipe.
cuisine : An array of the cuisines associated with this recipe.
holiday : An array of the holidays associated with this recipe.
flavors : The flavor scores for this recipe.
salty : Saltiness on a range of 0 to 1.
sour : Sourness on a range of 0 to 1.
sweet : Sweetness on a range of 0 to 1.
bitter : Bitterness on a range of 0 to 1.
meaty : Savoryness on a range of 0 to 1.
piquant : Spiciness on a range of 0 to 1.

Simple tasks


Create remote methods that will simplify stuff for querying routes.

So in order to get data about recipes, you can use swagger link: http://localhost:3000/explorer/#!/Recipe/Recipe_find
or
http://localhost:3000/api/recipe

it'll display a raw data about imported recipes.

This will give you a clear attributes list for particular recipe
http://localhost:3000/explorer/#!/Recipe/Recipe_prototype_get_attributesList
with id 5a8b57fc25b0113b4b961a0a
or
http://localhost:3000/api/recipe/5a8b57fc25b0113b4b961a0a/attributesList

id 5a8b57fc25b0113b4b961a0b

id 5a8b57fc25b0113b4b961a0c


Use this thing as visual for testing search functionality
#21 (comment)

Old information. Will update it later, maybe, this is why it here....


Recipe 1 & Recipe 4 has same attributes id=xxx

Recipe 1 & Recipe 2 has same attributes id=xxx

Recipe 2 & Recipe 3 has same attributes id=xxx

Recipe 3 & Recipe 4 has same attributes id=xxx
#20

Elastic Search

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.