Archives: Others

Some Thoughts on Designing and Building Rest API’s

September 20, 2020 | By kiranbadi1991 | No Comments | Filed in: Others.

On and off from past couple of years I have been building out Rest API’s using Java and on some other occasions using .NET. I often come across debates as how to build the API’s and what features or functionality we need to expose with through the API. I have seen folks building API which • Read More »

Java Utility – Rename Files in Folder

November 1, 2019 | By kiranbadi1991 | Comments Off on Java Utility – Rename Files in Folder | Filed in: Development, Others.

import java.io.File; import java.io.IOException; public class FileRename { public static void main(String args[]) throws IOException { String DIR_PATH = "MyDirectoryPath"; String stringToReplace = "MyStringtoReplaceInFileName"; getFileNames(DIR_PATH, stringToReplace); } public static void getFileNames(String Path, String stringToReplace) throws IOException { File folder = new File(Path); File[] listOfFiles = folder.listFiles(); System.out.println("Total Files :" + listOfFiles.length); for (int i = • Read More »

Tags:

Special HTTP Verb to request and view Documents online

May 28, 2019 | By kiranbadi1991 | Comments Off on Special HTTP Verb to request and view Documents online | Filed in: Development, Others, Process, Project Management, Security.

First American Financial Corp’s recently exposed good amount of data(885 million files related to real estate data) to the external folks.Probably this leak impacted close 885 million folks assuming each file relates to one property and one person or family. The leak mainly happened by modifying the URL parameter of the request. I have written • Read More »