Mention `sort` restrictions
- Id
- b87d0dbf137c5f54664e21d130377d8d98f64055
- Author
- Caio
- Commit time
- 2020-01-12T09:01:59+01:00
Modified README.markdown
}
```
-You can sort by any feature via `sort` and change the order to
-ascending via `ascending` (defaults to `false`):
+You can sort by any feature that doesn't start with "diet_" via `sort`
+and change the order to ascending via `ascending` (defaults to `false`):
```bash
curl -d'{ "sort": "num_ingredients", "ascending": true }' -H "${CT}" ${API}/search
Modified cantine/src/model.rs
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "snake_case")]
+// XXX This can be derived from Features too
pub enum Sort {
Relevance,
NumIngredients,