onflow / flow-interaction-template-service

https://flix.flow.com
Apache License 2.0
11 stars 5 forks source link

Improve Discoverability of Interaction Templates hosted on FLIX #18

Open JeffreyDoyle opened 1 year ago

JeffreyDoyle commented 1 year ago

Issue to be solved

In order to promote composability of applications on Flow, we need a good way for developers to discover available Interaction Templates hosted on FLIX.

Suggest A Solution

Create a solution where developers can either programatically, or using a UI, discover existing Interaction Templates they can use that are already hosted on FLIX.

What are you currently working on that this is blocking?

No response

bartolomej commented 1 year ago

@JeffreyDoyle Related to this, I think the current REST API is quite limiting for allowing discoverability as you can't search for a template without knowing either the exact source code, name, or ID (afaik).

I'm trying to integrate FLIX in Flowser, but the current API won't support our current use cases:

I guess the way to achieve this now, would be to read the templates from the Git repo (https://github.com/onflow/flow-interaction-template-service/tree/master/templates) and implement the searching functionality on our end (or forking and extending flow-interaction-template-service).

bartolomej commented 1 year ago

I think we could support our use case by simply adding the ability to retrieve all available templates. I've implemented this on our fork and also added some related thoughts: https://github.com/onflowser/flow-interaction-template-service/pull/2

It could be useful for the official service to also support some variant of this feature to allow greater discoverability of templates.

bartolomej commented 1 year ago

Related: https://github.com/onflow/flow-cli/issues/1226