From be10da17f4f53d0456df4d43548f134f9bb73d11 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 9 Sep 2023 23:22:22 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20External=20links=20in=20Open=20A?= =?UTF-8?q?PI=20spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds external links in Open API spec. --- src/main.tsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.tsp b/src/main.tsp index 8de730f..e0fe140 100644 --- a/src/main.tsp +++ b/src/main.tsp @@ -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;