Skip to content

nelsonwija/midtrans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

midtrans

Installation

To start using the API, import the database.sql file to the current mysql database system then access the midtrans.html file to use the api.

The API

The API folder consist of all php source code to interact with the database

  • addTransaction.php = adds a new transaction to the database
  • addUser.php = adds a new user
  • databaseContents.php = constants needed to connect to the database
  • getTransaction.php = get transactions of a user with user id as input
  • getUser.php = get's user's information such as user's balance and name with user id as the input
  • updateUserName.php = update the user's balance and name with user's id as input

Users guide

Open the midtrans.html file and fill in the form according to the API's function, Submitting the form will outputs the JSON response from the API itself

About

Interview Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published