Skip to content

Commit

Permalink
📝 External links in Open API spec
Browse files Browse the repository at this point in the history
Adds external links in Open API spec.
  • Loading branch information
connorjs committed Sep 10, 2023
1 parent 32dc49a commit be10da1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import "./vehicles.tsp";

using TypeSpec.Http;

/** SWAPI: The Star Wars API (generated with TypeSpec from [swapi-typespec](https://github.com/connorjs/swapi-typespec#readme)). */
@service({
title: "SWAPI: The Star Wars API",
title: "SWAPI (TypeSpec)",
version: "v1",
})
@server("https://swapi.dev/api/", "SWAPI server")
@OpenAPI.externalDocs("https://swapi.dev/")
namespace SWAPI;

0 comments on commit be10da1

Please sign in to comment.