CheeseXML API
https://www.samovar-tool.ru/cheesexml/v1/
无需账户即可进行公开读取。保存配方的请求需要已认证的用户。
| 方法 | 路径和参数 | 响应 |
|---|---|---|
| GET | /recipes?q&catalog&family&style&country&species&difficulty&sort&page&perPage&lang | 分页的公开配方摘要 |
| GET | /recipes/{slug}?lang | 以 JSON 返回的单个公开配方 |
| GET | /recipes/{slug}/cheesexml | CheeseXML 文档 |
| GET | /calculators | 计算器定义 |
| POST | /calculators/{code}/calculate JSON {"inputs":{}} | 计算结果 |
| GET | /schema | 命名空间、XSD 和示例 |
错误
400 cheesexml_validation_error, 401 cheesexml_unauthorized, 404 cheesexml_not_found, 405 cheesexml_method_not_allowed. 每个 JSON 错误都包含稳定的 code 和 message 字段。
