Hello, I am running through the Docker Prefect exa...
# ask-community
s
Hello, I am running through the Docker Prefect example (https://docs.prefect.io/guide/examples/imperative_docker.html) and it says that it is using the Imperative API to build out the example. Is there a reason why the Functional API couldn't be used for this purpose?
c
nope, no reason at all; we just used the imperative API for a more diverse set of examples
s
thanks!
👍 1
Something that would be helpful would be to see a similar task written with both APIs. Being new to Prefect, it would help me understand the differences.
👍 1
c
Yea that makes sense! I’ve opened an issue to rewrite the Docker example using the functional API (as a new example, so you can compare): https://github.com/PrefectHQ/prefect/issues/1217
👍 1
Hi @Sherman -> our functional API docker example is now live! https://docs.prefect.io/guide/examples/functional_docker.html
s
Amazing. Thank you!