Skip to content

A ReST API project from CSE 5382 Secure Programming, implementing input validation using regEx. Features include a phone book application, audit logs, and secure data handling.

Notifications You must be signed in to change notification settings

meghna-cse/inputVal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

inputVal - ReST API for Input Validation

About inputVal

inputVal is a ReST API developed for the CSE 5382 Secure Programming course at UTA. This project focuses on validating input using regular expressions, ensuring secure and efficient data handling in web applications.

Project Overview

Features

  • Input Validation: Utilizes regular expressions for robust input validation.
  • Phone Book Application: Demonstrates practical application with a phone book management system.
  • Audit Logs: Records operations with details like IP address, username, action, and timestamp.

Design of the regular expression

For more details on the regular expression design, visit the wiki

Getting Started

Follow these steps to get a local copy up and running:

Prerequisites

  • Maven (for resolving dependencies)
  • Docker (for building and running the application)

Installation and Setup

  • Clone the repo:
     git clone https://github.com/meghna-cse/inputVal.git` 
  • Navigate to the project directory and follow these commands:
    • Resolve Maven dependencies: mvn clean install
    • Build Docker image: docker build -t [image_name] .
    • Create Docker network: docker network create [network_name]
    • Run Docker container: docker run -d -p 8080:8080 --network [network_name]
  • Access the application at http://localhost:8080.

Usage

The API provides endpoints for managing a phone book:

  • List Contacts: GET /PhoneBook/list
  • Add Contact: POST /PhoneBook/add (Parameters: name, phoneNumber)
  • Delete by Phone Number: PUT /PhoneBook/deleteByPhoneNumber (Parameter: phoneNumber)
  • Delete by Name: PUT /PhoneBook/deleteByName (Parameter: name)

Dependencies

  • Snake Yaml, Xerial JDBC, Hibernate ORM, Spring Boot (Starter test, data JPA, web)

About

A ReST API project from CSE 5382 Secure Programming, implementing input validation using regEx. Features include a phone book application, audit logs, and secure data handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published