Use npm run
to list all available scripts. The release
script executes a
“release build.” The CI build uses this script.
- src contains the TypeSpec (
.tsp
) files
-
Separate files by type. Name files using the plural form, which SWAPI uses in its documentation.
-
Using
@resource
adds all REST operations. Thus, the spec files explicitly configurelist
andread
operations because SWAPI only supports those.As a result, this project does not use
@typespec/rest
at all. Instead, it only needs@typespec/http
for the API definitions. -
Use backticks to escape properties that are TypeSpec keywords. For example,
`model`: string; // Used in starships.tsp