Swagger-style Thing Description viewer

オープン
#428 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
fastapi, node.js, python

調査の方向性

Start by reading the Thing Description document a running LabThings server exposes, since the issue names it as the only interface between the viewer and the server, and compare it with the current Swagger output. Survey existing Thing Description tooling (the WoT node library is mentioned) before deciding whether to build a single-page app. Done means one page per Thing, each property and action listed once, with invoke/read/write working against a live server; the issue leaves repo placement and scope open, so expect a design discussion first.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

Is your feature request related to a problem? Please describe.

The Swagger docs are very long, because an Affordance (Property/Action) corresponds to potentially quite a few endpoints. There are some improvements to the API that might make this problem worse. Trawling through Swagger is a pain, and additionally it's not very nice to use, because there's a lot of irrelevant/duplicated information.

Describe the solution you'd like

It would be fantastic to have an interactive documentation page based on the Thing Description, with a page per Thing. That way, each property or action gets exactly one entry, and it's neatly organised by Thing. Ideally, because this is served from a live LabThings server, you'd even be able to invoke actions and read/write properties. Things like polling for completion of an invocation are a pain to do from Swagger, but would be really easy to add to a custom web app.

This would make quite a nice self-contained little project, perhaps even a separate repo that builds a single page web app that we can bundle into the LabThings server. The interface between this and the rest of LabThings is the Thing Description document, so it's already pretty well defined.

Describe alternatives you've considered
I have briefy played with the WoT node library, but not for quite a while. It would be worth doing a survey of Thing Description tools before coding our own from scratch, though I think LabThings is probably enough of an edge case that we are likely to end up rolling our own to some degree.

主要言語
Python
スター
10
フォーク
4
平均マージ
4日 15時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

labthings/labthings-fastapi のほかの issue

labthings/labthings-fastapi の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。