Remove open api spec
This commit is contained in:
1 parent
becb8b04f5
commit
a9f70b48aa
3 files changed
+5
-10
No files matched your search
@@ -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
|
||||
|
||||
+1
-3
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
Reference in new issue
Block a user