Skip to content

Commit

Permalink
Merge pull request #8262 from mindula/integration-tutorials
Browse files Browse the repository at this point in the history
Improve `Sending emails` and `Service orchestration` tutorials
  • Loading branch information
MaryamZi committed Nov 16, 2023
2 parents 9a3a98b + e17dca8 commit 5f85a9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ $ bal run hospitalservice.jar

#### Send a request

Use the [Try it](https://wso2.com/ballerina/vscode/docs/try-the-services/try-http-services/) feature to send a request to the service. Specify the port used in the service and use `surgery` as the path parameter. Use the following as the request payload.
Use the [Try it](https://wso2.com/ballerina/vscode/docs/try-the-services/try-http-services/) feature to send a request to the service. Specify `surgery` as the path parameter. Use the following as the request payload.

```json
{
Expand Down
30 changes: 15 additions & 15 deletions swan-lake/integration-tutorials/service-orchestration.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,52 +338,52 @@ You have successfully developed the required service.
import ballerina/http;
import ballerina/log;
type Doctor record {
type Doctor record {|
string name;
string hospital;
string category;
string availability;
decimal fee;
};
|};
type Patient record {
type Patient record {|
string name;
string dob;
string ssn;
string address;
string phone;
string email;
};
|};
type Appointment record {
type Appointment record {|
int appointmentNumber;
Doctor doctor;
Patient patient;
boolean confirmed;
string hospital;
string appointmentDate;
};
|};
type PatientWithCardNo record {
type PatientWithCardNo record {|
*Patient;
string cardNo;
};
|};
type ReservationRequest record {
type ReservationRequest record {|
PatientWithCardNo patient;
string doctor;
string hospital_id;
string hospital;
string appointment_date;
};
|};
type Fee record {
type Fee record {|
string patientName;
string doctorName;
string actualFee;
};
|};
type ReservationStatus record {
type ReservationStatus record {|
int appointmentNo;
string doctorName;
string patient;
Expand All @@ -392,7 +392,7 @@ type ReservationStatus record {
decimal discounted;
string paymentID;
string status;
};
|};
configurable string hospitalServicesBackend = "http://localhost:9090";
configurable string paymentBackend = "http://localhost:9090/healthcare/payments";
Expand Down Expand Up @@ -497,7 +497,7 @@ $ bal run hospitalservice.jar

#### Send a request

Use the [Try it](https://wso2.com/ballerina/vscode/docs/try-the-services/try-http-services/) feature to send a request to the service. Specify the port used in the service and use `surgery` as the path parameter. Use the following as the request payload.
Use the [Try it](https://wso2.com/ballerina/vscode/docs/try-the-services/try-http-services/) feature to send a request to the service. Specify `surgery` as the path parameter. Use the following as the request payload.

```json
{
Expand Down

0 comments on commit 5f85a9d

Please sign in to comment.