mohanvaddi / Indian-Recipes-Graphql

This GraphQL API contains over 6500 recipes from all around India.

Home Page:https://studio.apollographql.com/public/indian-food-recipe-api/explorer?variant=current

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • This API contains over 6500 recipes from all around India.
  • API Endpoint: https://indian-food-recipe-graphql-api.herokuapp.com/graphql
  • Try Quering the API at Explorer

Accessing the graph:

Graph Schema :

    type Query {
        recipe: [Recipe!]!
        random: [Recipe!]!
        find(srno: String!): [Recipe!]!
        findByName(recipeName: String!): [Recipe!]!
    }
    type Recipe {
        id: ID!
        Srno: String
        RecipeName: String
        TranslatedRecipeName: String
        Ingredients: String
        TranslatedIngredients: String
        PrepTimeInMins: String
        CookTimeInMins: String
        TotalTimeInMins: String
        Servings: String
        Cuisine: String
        Course: String
        Diet: String
        Instructions: String
        TranslatedInstructions: String
        URL: String
    }

Running operations :

Get details of all Recipes:

query Query {
  recipe {
    TranslatedRecipeName
    TranslatedIngredients
    TotalTimeInMins
    Cuisine
    Servings
    Course
    Diet
    TranslatedInstructions
  }
}

Get a random Indian Recipe:

query Query {
  random {
    id
    Srno
    TranslatedRecipeName
    RecipeName
    Ingredients
    TranslatedIngredients
    PrepTimeInMins
    CookTimeInMins
    TotalTimeInMins
    Servings
    Cuisine
    Diet
    Course
    Instructions
    TranslatedInstructions
    URL
  }
}

Find recipe by Srno.:

query Query($srno: String!) {
  find(srno: $srno) {
      //recipe fields you need.
  }
}

Find recipe by Name:

query Query($recipeName: String!) {
  findByName(recipeName: $recipeName) { 
      //recipe fields you need.
  }
}

References:

About

This GraphQL API contains over 6500 recipes from all around India.

https://studio.apollographql.com/public/indian-food-recipe-api/explorer?variant=current


Languages

Language:JavaScript 100.0%