Swagger-style Thing Description viewer
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 22/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- documentation, frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 10
- Forks
- 4
- Merge moyen
- 4 j 15 h
- PR mergées (30 j)
- 11
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de labthings/labthings-fastapi
-
Tests can fail on `anyio < 4.14`Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
labthings/labthings-fastapi#438 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
labthings/labthings-fastapi#435 ·
Les mainteneurs répondent en général sous 3 jours
-
Consider atomic JSON writesPeut-être à nouveau libre @ashiishe2-oss l’a pris il y a 26 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
labthings/labthings-fastapi#412 · 3 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
Use `Exception.add_note`Ouvertedrop-python-version
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
labthings/labthings-fastapi#354 · 2 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
Log propagation issueOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
labthings/labthings-fastapi#312 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de labthings/labthings-fastapi
Issues similaires
-
bug feature request
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Qiskit/qiskit-obp#156 ·
-
perf(batch-jobs): discover-misses reads the state list without running the whole stage reportOuverteaction-item enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
getcommunityone/open-navigator#1658 ·
Les mainteneurs répondent en général sous 1 jour
-
review-panel severity:low
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
kristovatlas/coin-accounting#636 ·
Les mainteneurs répondent en général sous 1 jour