-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.tsp
More file actions
33 lines (28 loc) · 1.01 KB
/
main.tsp
File metadata and controls
33 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import "@typespec/http";
import "@typespec/openapi";
import "@typespec/openapi3";
import "./services/clusters.tsp";
import "./services/statuses.tsp";
import "./services/nodepools.tsp";
// Provider-specific security is imported via aliases.tsp
import "./aliases.tsp";
using Http;
using OpenAPI;
/**
* HyperFleet API provides simple CRUD operations for managing cluster resources and their status history.
*
* **Architecture**: Simple CRUD only, no business logic, no event creation.
* Sentinel operator handles all orchestration logic.
* Adapters handle the specifics of managing spec
*
*/
@service(#{ title: "HyperFleet API" })
@info(#{ version: "1.0.5", contact: #{ name: "HyperFleet Team" }, license: #{ name: "Apache 2.0" ,url: "https://www.apache.org/licenses/LICENSE-2.0"} })
@server("https://hyperfleet.redhat.com", "Production")
@route("/api/hyperfleet/v1")
namespace HyperFleet;
// Override BearerAuth to use lowercase "bearer" as required by kin-openapi
model BearerAuth {
type: AuthType.http;
scheme: "bearer";
}