Skip to content

Commit

Permalink
Add OpenAPI Link to Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Dec 24, 2024
1 parent d2cc63d commit 6c2dafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/lib/openApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function getDocument() {
info: {
title: 'PlayMoney API',
version: '1.0',
description: `Include \`x-api-key: {{key}}\` in the header of your requests. Api key can be generated at [https://playmoney.dev/settings/api](https://playmoney.dev/settings/api)`,
description: `Include \`x-api-key: {{key}}\` in the header of your requests. \n\nApi key can be generated at [https://playmoney.dev/settings/api](https://playmoney.dev/settings/api)\n\nOpenAPI spec can be found at [https://github.com/casesandberg/play-money/blob/main/apps/api/openapi.json](https://github.com/casesandberg/play-money/blob/main/apps/api/openapi.json)`,
},
servers: process.env.NEXT_PUBLIC_API_URL
? [
Expand Down
2 changes: 1 addition & 1 deletion apps/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "PlayMoney API",
"version": "1.0",
"description": "Include `x-api-key: {{key}}` in the header of your requests. Api key can be generated at [https://playmoney.dev/settings/api](https://playmoney.dev/settings/api)"
"description": "Include `x-api-key: {{key}}` in the header of your requests. \n\nApi key can be generated at [https://playmoney.dev/settings/api](https://playmoney.dev/settings/api)\n\nOpenAPI spec can be found at [https://github.com/casesandberg/play-money/blob/main/apps/api/openapi.json](https://github.com/casesandberg/play-money/blob/main/apps/api/openapi.json)"
},
"components": {
"securitySchemes": {
Expand Down

0 comments on commit 6c2dafd

Please sign in to comment.