Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/keploy.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ Most requested APIs for common application features:
| [JSONPlaceholder](https://jsonplaceholder.typicode.com/) | <details><summary>Fake REST API for testing and prototyping</summary>Perfect for learning, testing, and prototyping with fake posts, comments, albums, photos, todos, and users.</details> | None | Easy |
| [Random User Generator](https://randomuser.me/) | <details><summary>Generate random user data for testing</summary>Get realistic user profiles with photos, names, addresses, and contact information for testing applications.</details> | None | Easy |

| API Name | Description | Auth | Difficulty |
| ------------- | ----------------------------------------------------------------- | ---- | ---------- |
| Keploy Quotes | A simple Spring Boot REST API providing random programming quotes | None | Easy |



---

## Text Analysis & Processing
Expand Down
8 changes: 8 additions & 0 deletions demo.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$" dumb="true">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
</component>
</module>
73 changes: 73 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<!-- Spring Boot Starter Parent to set default configurations -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version> <!-- Set your required Spring Boot version -->
</parent>

<properties>
<java.version>20</java.version> <!-- Set Java version to match your JDK -->
</properties>

<dependencies>
<!-- Spring Boot Web Starter for RESTful Web Services -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<!-- Spring Boot Starter Test for Unit and Integration Testing -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<!-- JUnit Jupiter for Testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.8.2</version> <!-- Ensure JUnit version is set correctly -->
<scope>test</scope>
</dependency>

<!-- JUnit Jupiter Engine (for running the tests) -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.2</version> <!-- Ensure JUnit engine version is set correctly -->
<scope>test</scope>
</dependency>

<!-- Optional: Spring Boot DevTools for development purposes -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Spring Boot Maven Plugin for easy packaging and running of Spring Boot apps -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
11 changes: 11 additions & 0 deletions src/main/java/com/publicapi/keploy/KeployApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.publicapi.keploy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class KeployApplication {
public static void main(String[] args) {
SpringApplication.run(KeployApplication.class, args);
}
}
21 changes: 21 additions & 0 deletions src/main/java/com/publicapi/keploy/QuoteController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.publicapi.keploy;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Random;

@RestController
public class QuoteController {
private final List<String> quotes = List.of(
"The only limit to our realization of tomorrow is our doubts of today. – FDR",
"Do one thing every day that scares you. – Eleanor Roosevelt",
"Success is not final, failure is not fatal. – Winston Churchill"
);

@GetMapping("/api/quote")
public String getQuote() {
return quotes.get(new Random().nextInt(quotes.size()));
}
}
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
server.port=9099
1 change: 1 addition & 0 deletions target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
server.port=9099
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions target/classes/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
server.port=9099
Binary file added target/demo-0.0.1-SNAPSHOT.jar
Binary file not shown.
Binary file added target/demo-0.0.1-SNAPSHOT.jar.original
Binary file not shown.
3 changes: 3 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=demo
groupId=com.example
version=0.0.1-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
D:\Projects\Spring Boot\src\main\java\com\springboot\MyApp.java
D:\Projects\Spring Boot\src\main\java\com\springboot\controller\MyController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com\springboot\MyAppTests.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D:\Projects\Spring Boot\src\test\java\com\springboot\MyAppTests.java
Loading