https://flyte.org logo
#ask-the-community
Title
# ask-the-community
g

George D. Torres

09/16/2022, 5:10 PM
Is there schema documentation for api requests that execute a launch plan? I found the protocol documentation , but I can't find any specific schema for what the inputs should look like when they are not primitives (e.g. a dataclass type that my workflow defines)
y

Yee

09/16/2022, 8:07 PM
what language are you calling the api from?
g

George D. Torres

09/16/2022, 8:07 PM
python (and later will be doing golang)
y

Yee

09/16/2022, 8:07 PM
python is not bad.
use the
FlyteRemote
object
g

George D. Torres

09/16/2022, 8:09 PM
ah I see. I was trying to build my own body by hand and then post via
requests
. Is there a similar tool for golang?
y

Yee

09/16/2022, 8:47 PM
sorry was in a meeting. golang is a bit trickier, cuz there’s no SDK right? so there’s no
TypeEngine
but the protobuf generated code is also captured into a higher level client capable of emitting FlyteAdmin requests and understanding responses
that client lives here. I will note however that flytectl is written in go and is capable of doing things like sending a launch plan execution request.
it does so by parsing a yaml input to create the admin request protobuf messag
in that repo you might find code which is helpful to do that type engine conversion if you want to write it
g

George D. Torres

09/16/2022, 8:50 PM
Yes, I think that's what I need. Thank you!
y

Yee

09/16/2022, 8:50 PM
can treat that whole repo as a library if you want, probably has a lot of helper functions you’d find helpful
also please keep in mind that this is kinda internal flyte code
so it may be subject to change… think of it as code you can use but not a strict API we’re gonna commit to. the go bits that is. The Python
FlyteRemote
object we will not break