Hello Module
This is the Hello World of Accord Project Templates, with two Ergo modules.
This is the Hello World of Accord Project Templates, with two Ergo modules.
This is the Hello World of Accord Project Templates, with two Ergo modules.
Name of the person to greet: "Fred Blogs". Thank you!
Name of the person to greet: "Fred Blogs".
Thank you!
Name of the person to greet: {{name}}.
Thank you!
{
"$class": "org.accordproject.hellomodule@0.1.0.TemplateModel",
"name": "Fred Blogs",
"clauseId": "f7a54995-ce97-4245-91aa-75e0f34d2b78",
"$identifier": "f7a54995-ce97-4245-91aa-75e0f34d2b78"
}
namespace org.accordproject.hellomodule@0.1.0
import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
transaction MyRequest extends Request {
o String input
}
transaction MyResponse extends Response {
o String output
}
@template
asset TemplateModel extends Clause {
o String name
}
Find the full logic for this template on on GitHub.
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.State | |
| Type | Sample JSON |
|---|---|
| org.accordproject.hellomodule@0.1.0.MyRequest | |
| org.accordproject.runtime@0.2.0.Request | |
| Type | Sample JSON |
|---|---|
| org.accordproject.hellomodule@0.1.0.MyResponse | |
| org.accordproject.runtime@0.2.0.Response | |
| Type | Sample JSON |
|---|
Please refer to the Accord Project documentation for how to use a template or integrate it within your application.
View the Latest code for this template on GitHub.