Skip to content

Commit

Permalink
Merge pull request #1 from djhvscf/develop
Browse files Browse the repository at this point in the history
Merge first release
  • Loading branch information
Dennis Hernández committed Jul 18, 2014
2 parents 91fad70 + 3fd6b22 commit e8ba2e6
Show file tree
Hide file tree
Showing 194 changed files with 34,022 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/commons-io-1.3.2.jar"/>
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/json-20140107.jar"/>
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/jxl.jar"/>
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/mysql-connector-java-5.1.31.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.project
.classpath
*.classpath
.settings/
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mockaroo.api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Binary file added CSharpJExcel/jexcelapi_2_6_12.zip
Binary file not shown.
58 changes: 55 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@
mockaroo.api
============
Mockaroo API
================

Mockaroo API is an API that let us generate random data and insert into our data base. That's it.<br />
This API is based in JSON Objects.

Author Homepage: http://djhv92.wix.com/dennishernandez<br />

How to use it?
==============

MockarooApi mockarooApi = new MockarooApi("Apikey", "application/json");

HttpURLConnection conn = mockarooApi.getUrl().openConnecion();
MockarooCreateJSONObject creater = mockarooApi.getCreater();
JSONArray array= new JSONArray();
array.put("R+D");
array.put("Marketing");
array.put("HR");

JSONArray columns = new JSONArray();
columns.put(creater.createCustomList("department", array));
columns.put(creater.createFirstName("name"));

JSONObject data = mockarooApi.getJSONObject(conn, columns);

MockarooDataAccess dataAccess = new MockarooDataAccess("databaseDriver", "localhost", "username", "password");
String[] columnsTable = new String[2];
columnsTable[0] = "department";
columnsTable[1] = "name";
mockarooApi.Insert(data, dataAccess, "tableName", columnsTable);//Insert into a data base
MockarooFile test = new MockarooExcel("c:/temp/","test","testing","en", "EN");
test.write(data); //Generate a Excel file
MockarooFile json = new MockarooJSON("c:/temp/", "test");
json.write(data); //Generate a .json file

Dependencies
=============
Not yet.

Repo Contents
=============
Not yet.

Release history
======================
Not yet.

Download mockarooapi.jar
=======================
Not yet.

Mockaroo api
2 changes: 2 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/testMockarooApi
/com
Binary file added bin/com/mockaroo/api/MockarooApi.class
Binary file not shown.
Binary file added bin/com/mockaroo/api/MockarooDataAccess.class
Binary file not shown.
Binary file added bin/com/mockaroo/api/MockarooJSON.class
Binary file not shown.
Binary file not shown.
Binary file added bin/com/mockaroo/api/classes/MockarooUrl.class
Binary file not shown.
Binary file added bin/com/mockaroo/api/dataTypes/Blank.class
Binary file not shown.
Binary file added bin/com/mockaroo/api/dataTypes/Boolean.class
Binary file not shown.
Binary file not shown.
Binary file added bin/com/mockaroo/api/enums/MockarooDateType.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/mockaroo/api/enums/MockarooType.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/mockaroo/api/interfaces/IUrl.class
Binary file not shown.
Binary file not shown.
Binary file added dependencies/commons-io-1.3.2.jar
Binary file not shown.
Binary file added dependencies/json-20140107.jar
Binary file not shown.
Binary file added dependencies/jxl.jar
Binary file not shown.
Binary file added dependencies/mysql-connector-java-5.1.31.jar
Binary file not shown.
47 changes: 47 additions & 0 deletions doc/allclasses-frame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Wed Jul 16 17:03:49 CST 2014 -->
<title>All Classes</title>
<meta name="date" content="2014-07-16">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
<h1 class="bar">All Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="com/mockaroo/api/dataTypes/Blank.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">Blank</a></li>
<li><a href="com/mockaroo/api/dataTypes/Boolean.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">Boolean</a></li>
<li><a href="com/mockaroo/api/interfaces/ICreateJSONObjectHelper.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>ICreateJSONObjectHelper</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IMockarooDataType.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IMockarooDataType</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IUrl.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IUrl</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IValidatorHelper.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IValidatorHelper</i></a></li>
<li><a href="com/mockaroo/api/MockarooApi.html" title="class in com.mockaroo.api" target="classFrame">MockarooApi</a></li>
<li><a href="com/mockaroo/api/classes/MockarooCreateJSONObject.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooCreateJSONObject</a></li>
<li><a href="com/mockaroo/api/helpers/MockarooCreateJSONObjectHelper.html" title="class in com.mockaroo.api.helpers" target="classFrame">MockarooCreateJSONObjectHelper</a></li>
<li><a href="com/mockaroo/api/MockarooDataAccess.html" title="class in com.mockaroo.api" target="classFrame">MockarooDataAccess</a></li>
<li><a href="com/mockaroo/api/dataTypes/MockarooDataType.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">MockarooDataType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooDateType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooDateType</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooException.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooException</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionArray.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionArray</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormatTime.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionFormatTime</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormula.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionFormula</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionJSONArray.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionJSONArray</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionMyList.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionMyList</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionName.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionName</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionNumber.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionNumber</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionRegExpValue.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionRegExpValue</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionValue.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionValue</a></li>
<li><a href="com/mockaroo/api/MockarooJSON.html" title="class in com.mockaroo.api" target="classFrame">MockarooJSON</a></li>
<li><a href="com/mockaroo/api/enums/MockarooMoneyType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooMoneyType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooTimeType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooTimeType</a></li>
<li><a href="com/mockaroo/api/classes/MockarooType.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooType</a></li>
<li><a href="com/mockaroo/api/classes/MockarooType.Type.html" title="enum in com.mockaroo.api.classes" target="classFrame">MockarooType.Type</a></li>
<li><a href="com/mockaroo/api/classes/MockarooUrl.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooUrl</a></li>
<li><a href="com/mockaroo/api/helpers/MockarooValidatorHelper.html" title="class in com.mockaroo.api.helpers" target="classFrame">MockarooValidatorHelper</a></li>
</ul>
</div>
</body>
</html>
47 changes: 47 additions & 0 deletions doc/allclasses-noframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Wed Jul 16 17:03:49 CST 2014 -->
<title>All Classes</title>
<meta name="date" content="2014-07-16">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
<h1 class="bar">All Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="com/mockaroo/api/dataTypes/Blank.html" title="class in com.mockaroo.api.dataTypes">Blank</a></li>
<li><a href="com/mockaroo/api/dataTypes/Boolean.html" title="class in com.mockaroo.api.dataTypes">Boolean</a></li>
<li><a href="com/mockaroo/api/interfaces/ICreateJSONObjectHelper.html" title="interface in com.mockaroo.api.interfaces"><i>ICreateJSONObjectHelper</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IMockarooDataType.html" title="interface in com.mockaroo.api.interfaces"><i>IMockarooDataType</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IUrl.html" title="interface in com.mockaroo.api.interfaces"><i>IUrl</i></a></li>
<li><a href="com/mockaroo/api/interfaces/IValidatorHelper.html" title="interface in com.mockaroo.api.interfaces"><i>IValidatorHelper</i></a></li>
<li><a href="com/mockaroo/api/MockarooApi.html" title="class in com.mockaroo.api">MockarooApi</a></li>
<li><a href="com/mockaroo/api/classes/MockarooCreateJSONObject.html" title="class in com.mockaroo.api.classes">MockarooCreateJSONObject</a></li>
<li><a href="com/mockaroo/api/helpers/MockarooCreateJSONObjectHelper.html" title="class in com.mockaroo.api.helpers">MockarooCreateJSONObjectHelper</a></li>
<li><a href="com/mockaroo/api/MockarooDataAccess.html" title="class in com.mockaroo.api">MockarooDataAccess</a></li>
<li><a href="com/mockaroo/api/dataTypes/MockarooDataType.html" title="class in com.mockaroo.api.dataTypes">MockarooDataType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooDateType.html" title="enum in com.mockaroo.api.enums">MockarooDateType</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooException.html" title="class in com.mockaroo.api.exceptions">MockarooException</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionArray.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionArray</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormatTime.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionFormatTime</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormula.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionFormula</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionJSONArray.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionJSONArray</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionMyList.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionMyList</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionName.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionName</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionNumber.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionNumber</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionRegExpValue.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionRegExpValue</a></li>
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionValue.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionValue</a></li>
<li><a href="com/mockaroo/api/MockarooJSON.html" title="class in com.mockaroo.api">MockarooJSON</a></li>
<li><a href="com/mockaroo/api/enums/MockarooMoneyType.html" title="enum in com.mockaroo.api.enums">MockarooMoneyType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooTimeType.html" title="enum in com.mockaroo.api.enums">MockarooTimeType</a></li>
<li><a href="com/mockaroo/api/classes/MockarooType.html" title="class in com.mockaroo.api.classes">MockarooType</a></li>
<li><a href="com/mockaroo/api/enums/MockarooType.html" title="enum in com.mockaroo.api.enums">MockarooType</a></li>
<li><a href="com/mockaroo/api/classes/MockarooType.Type.html" title="enum in com.mockaroo.api.classes">MockarooType.Type</a></li>
<li><a href="com/mockaroo/api/classes/MockarooUrl.html" title="class in com.mockaroo.api.classes">MockarooUrl</a></li>
<li><a href="com/mockaroo/api/helpers/MockarooValidatorHelper.html" title="class in com.mockaroo.api.helpers">MockarooValidatorHelper</a></li>
</ul>
</div>
</body>
</html>
Loading

0 comments on commit e8ba2e6

Please sign in to comment.