RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

12345678910
  1. use server::routes;
  2. #[test]
  3. fn openapi_includes_item_and_health_paths() {
  4. let spec = routes::openapi_spec();
  5. let json = spec.to_pretty_json().expect("serialize openapi");
  6. assert!(json.contains("/health/live"), "missing live probe: {json}");
  7. assert!(json.contains("/health/ready"), "missing ready probe: {json}");
  8. assert!(json.contains("/api/v1/items"), "missing items collection: {json}");
  9. }