-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp sending emails from a service
tutorial
#8133
Revamp sending emails from a service
tutorial
#8133
Conversation
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, It is nice to have a screenshot of the received email
47000b0
to
13d9aa2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note
- there's a record named
PaymentSettlement
that's not used in the source - get rid of type inclusion and anonymous records and define new records for simplicity
- remove destructuring, especially with rest binding patterns, also for simplicity
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
13d9aa2
to
8053016
Compare
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
@@ -612,85 +478,42 @@ function getEmailContent(int appointmentNumber, Appointment appointment, Payment | |||
|
|||
### Step 3: Build and run the service | |||
|
|||
You can run this service by navigating to the project root and using the `bal run` command. | |||
![Run the service](/learn/images/integration-tutorials/sending-emails-from-a-service/run_the_service.gif) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for others let's follow /Users/username/integration-tutorials/tutorial-name as the root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The complete source code needs to be updated.
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
The code looks OK to me now. Let's update the gifs and content. |
e73a83a
to
259354f
Compare
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
swan-lake/integration-tutorials/sending-emails-from-a-service.md
Outdated
Show resolved
Hide resolved
sending emails from a service
tutorialsending emails from a service
tutorial
e3b64e8
into
ballerina-platform:integration-tutorials
public/learn/images/integration-tutorials/sending-emails-from-a-service/define_a_resource.gif
Show resolved
Hide resolved
- Use `/healthcare` as the service path (or the context) for the service attached to the listener that is listening on port `port`. | ||
|
||
- The HTTP resource allows the `POST` operation on resource path `/categories/{category}/reserve`, where `category` (corresponding to the specialization) is a path parameter. | ||
> **Note:** Enable two factor authentication on your Google account, generate an app password, and use the app password in place of your email password. The app password can be generated with [this link](https://myaccount.google.com/apppasswords?pli=1&rapt=AEjHL4Mf5XDD4rE79YJpP5E2NoNwhvXMET_TWyBcQRn-HMzt0PI8BmptpMGRiBVIamW-0ECgVZtXxMRA19bL4Wfnq_hmjBEMqA). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attaching https://ballerina.io/learn/by-example/#configurability
link is fine but, IMO, better to exaplain having a Config.toml
within the tutorial.
Purpose
$title
Checklist
Page addition
permalink
to pages.Page removal
redirect_from
on the alternative page.redirections.js
file.Page rename
redirect_from
.redirect_to:
(if applicable).Page restrcuture
permalink
to pages.redirect_from
.redirect_to:
(if applicable).