RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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. }