Skip to content

Commit a0ff871

Browse files
committed
Added TestAPI
0 parents  commit a0ff871

File tree

9 files changed

+2292
-0
lines changed

9 files changed

+2292
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# TestAPI
2+
ZachyAPI is a free Fake Online REST API for Testing and Prototyping.
3+
You can make requests to the endpoints:
4+
/users
5+
/companies
6+
/posts
7+
The following are sample requests:
8+
https://usersapi.p.rapidapi.com/users # for users endpoint
9+
https://usersapi.p.rapidapi.com/companies #for companies endpoint
10+
https://usersapi.p.rapidapi.com/posts #for posts endpoint
11+
12+
# I am an Open Source Champion.
13+
14+

db.json

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
{
2+
"users": [
3+
{
4+
"id": 1,
5+
"firstname": "zachary",
6+
"lastname": "moseti",
7+
"email": "[email protected]",
8+
"age": "19",
9+
"companyId": 1
10+
},
11+
{
12+
"id": "2",
13+
"firstname": "rodgers",
14+
"lastname": "ndocha",
15+
"email": "[email protected]",
16+
"age": "20",
17+
"companyId": 2
18+
},
19+
{
20+
"id": 3,
21+
"firstname": "monica",
22+
"lastname": "waweru",
23+
"email": "[email protected]",
24+
"age": "20",
25+
"companyId": 3
26+
},
27+
{
28+
"id": 5,
29+
"firstname": "jennie",
30+
"lastname": "kibiri",
31+
"age": "20",
32+
"email": "[email protected]",
33+
"companyId": 4
34+
},
35+
{
36+
"id": 4,
37+
"firstname": "jennie",
38+
"lastname": "develoer",
39+
"email": "[email protected]",
40+
"age": "20",
41+
"companyId": 4
42+
},
43+
{
44+
"id": 6,
45+
"firstname": "john",
46+
"lastname": "bash",
47+
"email": "[email protected]",
48+
"age": "27",
49+
"companyId": 6
50+
},
51+
{
52+
"id": 7,
53+
"firstname": "mary",
54+
"lastname": "bash",
55+
"email": "[email protected]",
56+
"age": "24",
57+
"companyId": 7
58+
},
59+
{
60+
"id": 8,
61+
"firstname": "irene",
62+
"lastname": "nduku",
63+
"email": "[email protected]",
64+
"age": "24",
65+
"companyId": 8
66+
},
67+
{
68+
"id": 9,
69+
"firstname": "jose",
70+
"lastname": "maina",
71+
"email": "[email protected]",
72+
"age": "24",
73+
"companyId": 9
74+
},
75+
{
76+
"id": 10,
77+
"firstname": "paul",
78+
"lastname": "maina",
79+
"email": "[email protected]",
80+
"age": "20",
81+
"companyId": 10
82+
},
83+
{
84+
"id": 11,
85+
"firstname": "john",
86+
"lastname": "kamau",
87+
"email": "[email protected]",
88+
"age": "20",
89+
"companyId": 11
90+
},
91+
{
92+
"id": 12,
93+
"firstname": "wilson",
94+
"lastname": "dev",
95+
"email": "[email protected]",
96+
"age": "20",
97+
"companyId": 12
98+
}
99+
],
100+
"companies": [
101+
{
102+
"id": 1,
103+
"name": "Apple",
104+
"location": "Eldoret",
105+
"description": "Apple Inc. is an American multinational technology company headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software, and online services. It is considered one of the Big Four technology companies, alongside Amazon, Google, and Microsoft.[6][7][8]"
106+
},
107+
{
108+
"id": 2,
109+
"name": "Facebook",
110+
"location": "Nairobi",
111+
"description": "Facebook is an American online social media and social networking service based in Menlo Park, California and a flagship service of the namesake company Facebook, Inc. It was founded by Mark Zuckerberg, along with fellow Harvard College students and roommates Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes."
112+
},
113+
{
114+
"id": 3,
115+
"name": "Amazon",
116+
"location": "Nakuru",
117+
"description": "Amazon.com, Inc.[7] (/ˈæməzɒn/), is an American multinational conglomerate technology company based in Seattle, with 750,000 employees.[8] It focuses on e-commerce, cloud computing, digital streaming, and artificial intelligence. It is considered one of the Big Four tech companies, along with Google, Apple, and Microsoft.[9][10][11] It has been referred to as one of the most influential economic and cultural forces in the world."
118+
},
119+
{
120+
"id": 4,
121+
"name": "Google",
122+
"location": "Kisii",
123+
"description": "Google LLC is an American multinational technology company that specializes in Internet-related services and products, which include online advertising"
124+
},
125+
{
126+
"name": "Safaricom",
127+
"location": "Nairobi",
128+
"description": "Safaricom is a leading communications company in Kenya with the widest and strongest coverage. The home of the famous Mobile Money service- M-PESA and",
129+
"id": 5
130+
},
131+
{
132+
"id": 6,
133+
"name": "Eldotec",
134+
"location": "Eldoret",
135+
"description": "Eldotec Consultancy Services Inc. specializes in supply chain communication and outreach to help bridge the gap between our clients and their customers"
136+
},
137+
{
138+
"id": 7,
139+
"name": "iHub",
140+
"location": "Nairobi",
141+
"description": "iHub is an Innovation hub and hacker space for the technology community in Nairobi was started in March 2010 by Erik Hersman a blogger"
142+
},
143+
{
144+
"id": 8,
145+
"name": "Tech star",
146+
"location": "Nairobi",
147+
"description": "Tech star is an Innovation hub and hacker space for the technology community in Nairobi was started in March 2010 by Erik Hersman a blogger"
148+
},
149+
{
150+
"id": 9,
151+
"name": "TechKnow",
152+
"location": "Eldoret",
153+
"description": "TechKnow is an Innovation hub and hacker space for the technology community in Nairobi was started in March 2010 by Erik Hersman a blogger"
154+
},
155+
{
156+
"id": 10,
157+
"name": "TechCrunch",
158+
"location": "Kisumu",
159+
"description": "TechCrunch is an Innovation hub and hacker space for the technology community in Kisumu was started in March 2010 by Erik Hersman a blogger"
160+
},
161+
{
162+
"id": 11,
163+
"name": "MLH",
164+
"location": "Eldoret",
165+
"description": "Major League Hacking, officially abbreviated as MLH, is a company that operates a league for student hackathons"
166+
}
167+
],
168+
"posts": [
169+
{
170+
"postId": 1,
171+
"name": "coding is fun",
172+
"email": "[email protected]",
173+
"body": "I love coding because this is what trains the human brain to think creatively and provide best soutions."
174+
},
175+
{
176+
"postId": 2,
177+
"name": "Tech journey",
178+
"email": "[email protected]",
179+
"body": "Myu tech journey has not been that easy,I have tried various technologies to see where i can fit.But now i am a skilled web developer."
180+
},
181+
{
182+
"postId": 3,
183+
"name": "Nothing is impossibble",
184+
"email": "[email protected]",
185+
"body": "Nothing is impossible,you just have to set yourself to achieve the very best of you."
186+
},
187+
{
188+
"postId": 4,
189+
"name": "Google Developer Expert",
190+
"email": "[email protected]",
191+
"body": "I am a Google Developer Expert in web technologies."
192+
},
193+
{
194+
"postId": 5,
195+
"name": "Geek Talk Thursday",
196+
"email": "[email protected]",
197+
"body": "I am a lead GTT."
198+
}
199+
]
200+
}

index.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
5+
<link rel="stylesheet" href="public/style.css">
6+
<title>JSON Server</title>
7+
</head>
8+
9+
<body>
10+
<header>
11+
<div class="container">
12+
<nav>
13+
<ul>
14+
<li class="title">
15+
TestAPI
16+
</li>
17+
<li>
18+
<a href="https://github.com/ZachyDev" target="_blank">
19+
<i class="fa fa-heart"></i>Github
20+
</a>
21+
</li>
22+
<li>
23+
<a href="https://my-json-server.typicode.com/ZachyDev/ZachyAPI" target="_blank">
24+
<i class="fa fa-cloud"></i>API
25+
</a>
26+
</li>
27+
<li>
28+
<a href="https://github.com/CodePro2" target="_blank">
29+
<i class="fa fa-thumbs-up"></i>Supporters
30+
</a>
31+
</li>
32+
</ul>
33+
</nav>
34+
</div>
35+
</header>
36+
<main>
37+
<div class="container">
38+
<h1>Fake Online REST API</h1>
39+
<p>
40+
Made with Love
41+
<br />
42+
#Open Source Champions
43+
</p>
44+
45+
<div id="resources">
46+
<h1>Resources</h1>
47+
<a href="https://my-json-server.typicode.com/ZachyDev/ZachyAPI/users" target="_blank">/users</a><br>
48+
<a href="https://my-json-server.typicode.com/ZachyDev/ZachyAPI/companies" target="_blank">/companies</a>
49+
</div>
50+
51+
<p>
52+
To access and modify resources, you can us e any HTTP method:
53+
</p>
54+
<p>
55+
<code>GET</code>
56+
<code>POST</code>
57+
<code>PUT</code>
58+
<code>PATCH</code>
59+
<code>DELETE</code>
60+
<code>OPTIONS</code>
61+
</p>
62+
63+
<div id="custom-routes"></div>
64+
65+
<h1>Documentation</h1>
66+
<p>
67+
<a href="https://github.com/ZachyDev/ZachyAPI/edit/master/README.md" target="_blank">
68+
README
69+
</a>
70+
</p>
71+
</div>
72+
</main>
73+
74+
<footer>
75+
<div class="container">
76+
<p>
77+
<script>
78+
document.write(`Zachy_in_Code @${ new Date().getFullYear() }`)
79+
</script>
80+
Twitter <a href="https://twitter.com/Zachy_Codes" target="_blank"><i class ="fa fa-twitter"></i></a>
81+
Github <a href="https://github.com/ZachyDev" target="_blank"><i class="fa fa-github"></i></a>
82+
Whatsapp <a href="https://api.whatsapp.com/send?phone=+254741114770" target="_blank"><i class="fa fa-whatsapp"></i></a>
83+
84+
</p>
85+
</div>
86+
</footer>
87+
88+
<script src="public/script.js"></script>
89+
</body>
90+
</html>
91+
92+
</body>
93+
</html>

0 commit comments

Comments
 (0)