Sorry @Mario, i forgot: to browse an instance of the v2 farmOS API, here's 
mine: https://vdl.farmos.dev/api/ 

Viewed in Firefox (tho not in Chrome or Safari, which fail to render this 
in human-readable form), one can pull out links to the available endponts, 
and then use those to browse details, tho not easily. 

Is this all the info that would be needed to build a UI with filters and 
dropdowns, etc. -like that TiddlyWeb API Explorer you shared?

/walt


On Tuesday, July 20, 2021 at 7:11:09 PM UTC+1 PMario wrote:

> Hi, 
>
> >SO @Mario: do you think as i do that an API Explorer in TW could be a 
> useful tool in this pursuit? and, if so, then is it something that might be 
> built w/ relative ease? 
>
> I think, it would be a useful tool. .. The problem creating it from 
> scratch with TW is, that it would be like "reverse engineering".  The 
> programmers that create the API should be able to create an API explorer 
> with ease. .. It may be a possible "side-product" of the API unit tests ... 
> (just a guess!)
>
> From my point of view the farmOS.py library is a user-level library 
> already. It abstracts the API - URL building process away, so imo it can't 
> be used to create an API explorer. 
>
> The info needed for an API explorer would come from 
> https://github.com/farmOS/farmOS/blob/2.x/docs/development/api/changes.md#resource-endpoints
>  
> ... 
>
> An API explorer would know the different "entity-type" and "bundle" names 
> and replace them with some dropdowns to build a valid URL eg: 
> /api/[entity-type]/[bundle]  would result in /api/log/activity and so on. 
>
> The different possible schemas may be seen at: 
> https://github.com/farmOS/farmOS/blob/2.x/docs/development/api/index.md 
> ... Since there is no link to a demo API, I don't know how this looks like. 
>
> -mario
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b1e6a937-e6e3-45c1-b4b1-1a1a3e9498aan%40googlegroups.com.

Reply via email to