Skip to content
Permalink
Browse files
update
  • Loading branch information
ebenezergraham committed Jun 13, 2018
1 parent c53c922 commit 13e3802db61dc28190a2a0102376074048af75a0
Showing 7 changed files with 88 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -34,22 +34,22 @@
public interface NotificationManager {

@RequestMapping(
value = "/sample",
value = "/notification",
method = RequestMethod.GET,
produces = MediaType.ALL_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE
)
List<Sample> findAllEntities();

@RequestMapping(
value = "/sample/{identifier}",
value = "/notification/{identifier}",
method = RequestMethod.GET,
produces = MediaType.ALL_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE)
Sample getEntity(@PathVariable("identifier") final String identifier);

@RequestMapping(
value = "/sample",
value = "/notification",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE
@@ -21,7 +21,7 @@
import org.apache.fineract.cn.notification.api.v1.client.NotificationManager;
import org.apache.fineract.cn.notification.api.v1.domain.Sample;
import org.apache.fineract.cn.notification.api.v1.events.NotificationEventConstants;
import org.apache.fineract.cn.notification.service.NotificationConfiguration;
import com.amazonaws.services.autoscaling.model.NotificationConfiguration;
import java.util.List;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.fineract.cn.anubis.test.v1.TenantApplicationSecurityEnvironmentTestRule;
@@ -17,7 +17,47 @@
-- under the License.
--

CREATE TABLE notification (
-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`email_gateway_configurations`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`email_gateway_configurations` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifer` VARCHAR(45) NULL DEFAULT NULL,
`host` VARCHAR(45) NOT NULL,
`port` VARCHAR(45) NOT NULL,
`username` VARCHAR(45) NOT NULL,
`app_id` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;


-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`sms_gateway_configurations`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`sms_gateway_configurations` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(45) NULL DEFAULT NULL,
`accountsid` VARCHAR(255) NOT NULL,
`auth_token` VARCHAR(255) NOT NULL,
`option` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;


-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`templates`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`templates` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;

-- ------------------------------------------------------

CREATE TABLE sample (
id BIGINT NOT NULL AUTO_INCREMENT,
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
@@ -29,4 +69,4 @@ CREATE TABLE template_sample (
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
CONSTRAINT template_sample_pk PRIMARY KEY (id)
);
);
@@ -17,7 +17,47 @@
-- under the License.
--

CREATE TABLE notification (
-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`email_gateway_configurations`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`email_gateway_configurations` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifer` VARCHAR(45) NULL DEFAULT NULL,
`host` VARCHAR(45) NOT NULL,
`port` VARCHAR(45) NOT NULL,
`username` VARCHAR(45) NOT NULL,
`app_id` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;


-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`sms_gateway_configurations`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`sms_gateway_configurations` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(45) NULL DEFAULT NULL,
`accountsid` VARCHAR(255) NOT NULL,
`auth_token` VARCHAR(255) NOT NULL,
`option` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;


-- -----------------------------------------------------
-- Table `fineract-cn-notification`.`templates`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`templates` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1;

-- ------------------------------------------------------

CREATE TABLE sample (
id BIGINT NOT NULL AUTO_INCREMENT,
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
@@ -29,4 +69,4 @@ CREATE TABLE template_sample (
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
CONSTRAINT template_sample_pk PRIMARY KEY (id)
);
);

0 comments on commit 13e3802

Please sign in to comment.