FINS Credit Card System API - Implementation Template

(0 reviews)

home

This API implementation template is a component of MuleSoft Accelerators, which accelerate the implementation of essential integration use cases.

The solution includes pre-built APIs, connectors, and integration templates that help unlock business-critical data from external systems and guide you in adopting best practices synthesized from thousands of customer implementations. Use these assets as is or extend them to meet your company’s unique needs.


Overview

This integration template implements the FINS Credit Card System API specification. It supports the following functionalities:

  • Create CreditCard in CreditCard DB
  • Update CreditCard in CreditCard DB
  • Search for one or more CreditCards in CreditCard DB
  • Get CreditCards by ID from CreditCard DB

Getting started

bulb.png The Getting Started with MuleSoft Accelerators guide provides general information on getting started with the accelerator components. This includes instructions on setting up your local workstation for configuring and deploying the applications.

Once your workstation has been set up and the application template imported into Anypoint Studio, proceed with the Prerequisites section.

Prerequisites

This implementation template has the following dependencies:

  • Maria Database

Please review the use cases described on the MuleSoft Accelerator for Financial Services solution pages for more information about dependencies on other APIs and services.

Configuring the MariaDB

These instructions assume that you have a MariaDB version 10.6.8 or later. There are DB Scripts located under the src/test/resources/scripts folder.

Run the DB scripts for this API in below order:
- create-creditcard-schema.sql
- create-logging-scripts.sql (optional, for debugging)
- generate-sp-create-script (produces a script to create all stored procs)
- sp_CreditCard_Upsert.sql

To drop the tables and stored procedures, execute the scripts drop-creditcard-schema.sql and drop-stored-procedures.sql, respectively. To truncate data from the tables, use the truncate-data.sql script.

Deployment

Each Accelerator implementation template in Exchange includes Bash and Windows scripts for building and deploying the APIs to CloudHub. These scripts depend on repositories, global settings, deployment profiles, and associated properties configured in the Maven settings.xml file.

For additional details, please refer to the Application Deployment section of the Getting Started Guide.

Preparation

Ensure the Maven profile CloudHub-FINS-DEV has been properly configured in your settings.xml file. In particular, make sure the common properties for your environment have been provided (e.g., Anypoint Platform client ID and secret).

Required property overrides

At a minimum, the following properties must be customized to reflect the target deployment environment.

Property NameDescription
api.autodiscoveryIDRequired if using API Manager to secure this API
creditcard.db.hostFINS Database hostname
creditcard.db.portFINS Database port
creditcard.db.nameFINS Database name
creditcard.db.userFINS Database username
creditcard.db.passFINS Database password

Testing

Use Advanced Rest Client or Postman to send a request over HTTPS. The template includes a Postman collection in the src/test/resources folder. Update the collection variable(s) after successful import.

Additional resources

  • The Data mappings tab describes how the request and response data structures are mapped between the API interfaces and CreditCard DB.
  • Refer to the Accelerators documentation home for more information about the MuleSoft Accelerators.

Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onNov 10, 2023
Asset overview

Asset versions for 1.5.x

Asset versions
VersionActions
1.5.2
1.5.1
1.5.0