Replies: 10 comments 20 replies
-
You are talking about the JSON-API-documentation and not about the whole manual, right? In that case I think it's a great idea - but unfortunately I have to tell you that I won't be able to do that. :( |
Beta Was this translation helpful? Give feedback.
-
I also think that this is part of the technichal documentation, not the user manual. In the end it would land on my plate which is already quite full in that regard, so this is something where "external" help would be really helpful. We set up a dedicated document for that in my repository to which you or whoever would/could do it have access to. Other than that, I don't see how we could do it at the moment. |
Beta Was this translation helpful? Give feedback.
-
I'm just talking about the JSON-API-documentation, right. I'm not sure if i got everything, but i documented everything from the manual. https://app.swaggerhub.com/apis/hacki11/BSB-LAN/2.0 After review and fixed findings i will provide a PR. |
Beta Was this translation helpful? Give feedback.
-
In conjunction with the upcoming release of BSB-LAN 2.0, here comes a list of changes over the last months that could/should be reflected in the API documentation:
I hope I haven't forgotten anything, @dukess? |
Beta Was this translation helpful? Give feedback.
-
@hacki11
There's also the v1.1 mentioned, we recently released v2.0 as the latest stable version, so maybe you want to update the docu accordingly..? |
Beta Was this translation helpful? Give feedback.
-
It is for sure far too late for my 2 cents but i have a question regarding /JB. Normally on list of parameters you stick to
But with /JB we now have
Going with the first would be consequent i think. More important is the fact, that currently it is not valid json.
https://jsononline.net/json-validator A map {} needs a key for an entry. If you want to stick without key it needs to be an array []. I think this should be fixed to produce correct json. |
Beta Was this translation helpful? Give feedback.
-
Schema: i would have expected VT_* but at least on my system (2.1) VT_ prefix is always missing. I only see "TEMP", "ENUM", etc. is the example in the brackets wrong or the returned information? precision: I get e.g. 0.1 => you wrote "characters after the decimal dot". that would mean 0.1 characters what is of course impossible. Wouldn't be 1 correct? |
Beta Was this translation helpful? Give feedback.
-
where do i find the isswitch property in possibleValues? |
Beta Was this translation helpful? Give feedback.
-
I have added the changes here https://app.swaggerhub.com/apis/hacki11/BSB-LAN/2.1 |
Beta Was this translation helpful? Give feedback.
-
I'm closing this here as we have another discussion thread here: |
Beta Was this translation helpful? Give feedback.
-
From several projects in the past i had to create/use rest api endpoints.
The most important thing was a good API documentation, even more when the target is not available for "trial and error".
There is a standard called OpenAPI where a HTTP API can be specified with json or yaml.
I see the following benefits:
I have already started with a few endpoints with the data models and example values to give you a first impression. Here you see JI, JV, JQ, JK, JS as a first draft.
You can see very quickly what endpoints are available, what information you get, what you have to provide as a user.
This also avoids more questions regarding which endpoint for what (like i had).
This should not be negative critics to @1coderookie, absolutely not. The documentation you did in the manual are really great and can not be found in many open source projects. But i think for the new release it is a great possibility to go the next step towards professional api documentation.
#268
#237
Beta Was this translation helpful? Give feedback.
All reactions