
This is a flat (without history) import of (some of) the content from our markdown module. We've imported this without history because the repo contains our blog posts and showcases posts content prior to porting them to strapi. Since this contains many images, it would balloon the size of this repo to import the full history. Instead, please refer to the history of the (archived) markdown repo at: https://github.com/freesewing/markdown
85 lines
1.1 KiB
Markdown
85 lines
1.1 KiB
Markdown
---
|
|
title: Recipes
|
|
---
|
|
|
|
## Create Recipe
|
|
|
|
```
|
|
POST /recipes
|
|
{
|
|
'name': 'The recipe name',
|
|
'notes': 'Some notes',
|
|
'recipe': {
|
|
'settings': {
|
|
'sa': 10,
|
|
'complete': true,
|
|
'paperless': false,
|
|
'units': 'metric',
|
|
'measurements': {
|
|
'bicepsCircumference': 335,
|
|
'centerBackNeckToWaist': 520,
|
|
'chestCircumference': 1080,
|
|
'"naturalWaistToHip': 145,
|
|
'neckCircumference': 420,
|
|
'shoulderSlope': 55,
|
|
'shoulderToShoulder': 465,
|
|
'hipsCircumference': 990
|
|
}
|
|
},
|
|
'pattern': 'aaron',
|
|
'model': 'dvqye'
|
|
}
|
|
}
|
|
```
|
|
On success:
|
|
```
|
|
200
|
|
{
|
|
'handle': 'abxda'
|
|
}
|
|
```
|
|
On failure:
|
|
```
|
|
400
|
|
```
|
|
|
|
Creates a recipe and returns its data.
|
|
|
|
## Read recipe
|
|
```
|
|
GET /recipes/:handle
|
|
```
|
|
On success: The recipe data
|
|
On failure:
|
|
```
|
|
400
|
|
```
|
|
|
|
Loads a recipe's data
|
|
|
|
## Update recipe
|
|
|
|
```
|
|
PUT /recipes/:handle
|
|
{
|
|
'notes': "5 stars, would make again"
|
|
}
|
|
```
|
|
|
|
Updates the recipe and returns the (updated) recipe data.
|
|
|
|
## Remove recipe
|
|
|
|
```
|
|
DELETE /recipes/:handle
|
|
```
|
|
On success:
|
|
```
|
|
200
|
|
```
|
|
On failure:
|
|
```
|
|
400
|
|
```
|
|
|
|
Removes the recipe
|