WesselBBD / Grad-WebLevelUp

Our 3rd level up involving web technologies
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Feature/backend update #36

Closed fabio-sv closed 2 years ago

fabio-sv commented 2 years ago

Endpoints

Examples

{{domain}}/dev/api/fans

{{domain}}/dev/api/fans?category=Ceiling+Fans&rpm=300&cfm=4800&sweep=1750

[
  {
    "id": "d5f711ec-63c8-2a07-8d27-0eab84de5e5f",
    "FanName": "Bento Fanimation",
    "FanCategoryName": "Ceiling Fans",
    "FanRPM": 157,
    "FanCFM": 4774,
    "FanSpanMM": 1321,
    "FanImageURL": "https://commons.wikimedia.org/wiki/File:Test.png",
    "FanBaseColourName": "Cedar Wood",
    "FanBaseColourHex": "96735A",
    "FanAccentColourName": "Anodised Aluminum",
    "FanAccentColourHex": "8C8583"
  },
  ...
]

Failure to provide all 4 values for filtering will result in a 400 Bad Request response