From b48ed23430a019c6c19c0713c14401067cbd2d76 Mon Sep 17 00:00:00 2001 From: Chinmay2107 Date: Fri, 8 Dec 2023 18:18:09 +0530 Subject: [PATCH] Adding assignment L3 --- build.gradle | 2 +- component.xml | 5 +- service/Order.rest.xml | 25 +++++ service/tutorial/order/OrderServices.xml | 134 ++++++++++++++++++++--- 4 files changed, 148 insertions(+), 18 deletions(-) create mode 100644 service/Order.rest.xml diff --git a/build.gradle b/build.gradle index dcf8aea..95b7f46 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" } dependencies { implementation project(':framework') - runtimeOnly 'mysql:mysql-connector-java:5.1.47' + runtimeOnly 'mysql:mysql-connector-java:8.0.32' } // by default the Java plugin runs test on build, change to not do that (only run test if explicit task) diff --git a/component.xml b/component.xml index 7ecb3f0..46f2347 100644 --- a/component.xml +++ b/component.xml @@ -1,5 +1,6 @@ - - + + diff --git a/service/Order.rest.xml b/service/Order.rest.xml new file mode 100644 index 0000000..6a6ee2b --- /dev/null +++ b/service/Order.rest.xml @@ -0,0 +1,25 @@ + diff --git a/service/tutorial/order/OrderServices.xml b/service/tutorial/order/OrderServices.xml index e192080..42a0a9b 100644 --- a/service/tutorial/order/OrderServices.xml +++ b/service/tutorial/order/OrderServices.xml @@ -1,27 +1,131 @@ - + - - - - Service to get OrderHeader records based on the given statusId. + + + + The default type is inline but I wrote it explicitly. It returns a list of all + Female Persons - - - The status for the Order Header. If no value is provided, - the default value for statusId will be "OrderApproved." - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file