Sample Space
1.0.0
1.0.0
  • Initial page
  • Sample Group
    • Sample Guide
    • Sample API
    • Sample FAQ
    • Sample Changelog
  • Sample External Link
  • Github Import
    • pcmola/lego-magic-train
      • network
        • pcmola/lego-magic-train
        • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • blob
        • main
          • pcmola/lego-magic-train
          • pcmola/lego-magic-train
          • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • Build software better, together
      • pcmola/lego-magic-train
      • tree
        • Build software better, together
        • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • archive
        • refs
          • heads
            • Bad request ยท GitHub
      • commits
        • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • graphs
        • pcmola/lego-magic-train
        • pcmola/lego-magic-train
        • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
      • stargazers
        • Build software better, together
      • pcmola/lego-magic-train
      • pcmola/lego-magic-train
Powered by GitBook
On this page

Was this helpful?

  1. Sample Group

Sample API

Get Cakes

GET https://api.cakes.com/v1/cakes/:id

This endpoint allows you to get free cakes.

Path Parameters

Name
Type
Description

id

string

ID of the cake to get, for free of course.

Query Parameters

Name
Type
Description

recipe

string

The API will do its best to find a cake matching the provided recipe.

gluten

boolean

Whether the cake should be gluten-free or not.

Headers

Name
Type
Description

Authentication

string

Authentication token to track down who is emptying our stocks.

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
{    "message": "Ain't no cake like that."}

PreviousSample GuideNextSample FAQ

Last updated 4 years ago

Was this helpful?