Use npm run to list all available scripts.
See ci-build.yml for details on the CI build.
- src contains the TypeSpec (
.tsp) files
-
Separate files by type. Name files using the plural form, which SWAPI uses in its documentation.
-
Using
@resourceadds all REST operations. Thus, the spec files explicitly configurelistandreadoperations because SWAPI only supports those.As a result, this project does not use
@typespec/restat all. Instead, it only needs@typespec/httpfor the API definitions. -
Use backticks to escape properties that are TypeSpec keywords. For example,
`model`: string; // Used in starships.tsp