open-runtimes / examples

Function examples for open-runtimes
MIT License
72 stars 123 forks source link

Added Java example function to generate QR code for a given text #180

Closed seemantshekhar43 closed 2 months ago

seemantshekhar43 commented 2 months ago

What does this PR do?

This PR introduces an example function "generate_qr_code" in Java. The example enhances understanding by showcasing practical implementation within the codebase.

"generate_qr_code" is a simple Java function which generates QR code for the given text.

Screenshot:

Successful Response:

successful_response

Error Response:

failed_response

✅ Task Summary

seemantshekhar43 commented 2 months ago

Commited a few small qualiy changes, approved now ✅

_(one bigger change was a switch from taking text from body to taking it from URL params ?text=my_QR_code_text.

All details: fc56266 (#180)

Replacing text coming as part of payload with url param is a nice idea. Other cosmetic quality changes makes sense as well. Thanks🙌