From a9f70b48aac333ba40e112fdae72bd98e137d6b7 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 22 May 2025 17:46:52 -0400 Subject: [PATCH] Remove open api spec --- CHANGELOG.md | 4 ++++ docs/README.md | 4 +--- tools/version-sync.js | 7 ------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d20d93..f75b1300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Settings: Added a "backend" section, and removed backend selection from Playback to avoid confusion +### Removed + +- [advanced users]: `playlet-web-api.yml` was removed. It was getting outdated, and too hard to maintain to justify keeping it + ### Fixed - Display issue in playlist view diff --git a/docs/README.md b/docs/README.md index 6b9c07d7..3df86390 100644 --- a/docs/README.md +++ b/docs/README.md @@ -166,8 +166,6 @@ Playlet lib comes equipped with a web server that runs on port 8888 when the app The web server runs on a continuously running [Task](https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/task.md) and uses a middeware system to manage routes, serve static files, [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), and more. -The server's API enpoints are described through the Open API spec file [playlet-web-api.yml](./playlet-web-api.yml) - Please note: while we would like to keep the API stable as much as possible, Playlet can't reasonbly maintain multiple versions of the API like traditional web apis, because it adds complexity and maintainablity burden on an app the runs in constrained environment. In short, we'll try not to break the API, but we might from time to time. #### Debug endpoints @@ -276,7 +274,7 @@ The Playlet web app uses [Tailwind CSS](https://tailwindcss.com/) as its base st ### API calls -The Playlet web app communicates with the Playlet Roku app using web APIs. Most of the APIs used are described in the OpenAPI spec [playlet-web-api.yml](./playlet-web-api.yml). The web app also uses Invidious apis documented at [https://docs.invidious.io/api](https://docs.invidious.io/api) +The Playlet web app communicates with the Playlet Roku app using web APIs. The web app also uses Invidious apis documented at [https://docs.invidious.io/api](https://docs.invidious.io/api) #### API calls (proxy authenticated) diff --git a/tools/version-sync.js b/tools/version-sync.js index b811a1e2..78cb5f60 100644 --- a/tools/version-sync.js +++ b/tools/version-sync.js @@ -30,10 +30,3 @@ const parsedVersion = semverParse(version); [".", "playlet-app", "playlet-lib", "playlet-web"].forEach(function (packageFolder) { execSync(`npm version ${version} --allow-same-version --no-git-tag-version`, { cwd: packageFolder }); }); - -const webApi = "docs/playlet-web-api.yml" -let webApiContent = fs.readFileSync(webApi, { encoding: 'utf8', flag: 'r' }); -// replace version in web api with regex -const webApiVersionPattern = /version: (\d+\.\d+\.\d+)/; -webApiContent = webApiContent.replace(webApiVersionPattern, `version: ${version}`); -fs.writeFileSync(webApi, webApiContent);