This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* spring-boot-test: parameters documentation * Add javadoc and readme to the command-line module * Update reamde and javadoc * Add readme and javadoc to Spring Boot Test autoconfiguration * Update site
- Loading branch information
Showing
45 changed files
with
893 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# HTTP Client Command Line | ||
|
||
[![Maven Central](https://img.shields.io/maven-central/v/uk.bot-by.ijhttp-tools/ijhttp-command-line)](https://search.maven.org/artifact/uk.bot-by.ijhttp-tools/ijhttp-command-line) | ||
[![Javadoc](https://javadoc.io/badge2/uk.bot-by.ijhttp-tools/ijhttp-command-line/javadoc.svg)](https://javadoc.io/doc/uk.bot-by.ijhttp-tools/ijhttp-command-line) | ||
|
||
The builder-style component [HttpClientCommandLine][component] helps to prepare command line | ||
to run [Intellij HTTP Client CLI tool][cli-tool]. | ||
|
||
The minimal configuration contains HTTP files only: | ||
```java | ||
var commandLine = new HttpClientCommandLine(); | ||
var executor = new DefaultExecutor(); | ||
var orders = Path.of("orders.http").toFile(); | ||
var products = Path.of("products.http").toFile(); | ||
var checkout = Path.of("checkout.http").toFile(); | ||
|
||
commandLine.files(java.util.List.of(orders, products, checkout)); | ||
executor.execute(commandLine.getCommandLine()); | ||
``` | ||
|
||
[component]: src/main/java/uk/bot_by/ijhttp_tools/command_line/HttpClientCommandLine.java | ||
|
||
[cli-tool]: https://www.jetbrains.com/help/idea/http-client-cli.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
command-line/src/main/java/uk/bot_by/ijhttp_tools/command_line/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* The builder-style component {@link uk.bot_by.ijhttp_tools.command_line.HttpClientCommandLine} | ||
* helps to prepare command line to run Intellij HTTP Client CLI tool. | ||
* <p> | ||
* There are Maven Plugin | ||
* <a href="https://gitlab.com/bot-by/ijhttp-maven-plugin/-/tree/main/maven-plugin"> | ||
* ijhttp-maven-plugin</a> and Spring Boot Test autoconfiguration | ||
* <a href="https://gitlab.com/bot-by/ijhttp-maven-plugin/-/tree/mai/spring-boot-test"> | ||
* ijhttp-spring-boot-test</a> to run HTTP requests on the <em>integration-test</em> phase using the | ||
* IntelliJ HTTP Client. | ||
* | ||
* @author Vitalij Berdinskih | ||
* @since 1.0.0 | ||
*/ | ||
package uk.bot_by.ijhttp_tools.command_line; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>ijhttp tools, command line</title> | ||
</head> | ||
<body> | ||
<p>Originally the <a | ||
href="https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html">IntelliJ HTTP | ||
Client</a> plugin allows to create, edit, and execute HTTP requests directly in the | ||
IntelliJ IDEA code editor. The IntelliJ HTTP Client is also <a | ||
href="https://www.jetbrains.com/help/idea/http-client-cli.html">available as a CLI tool</a>. | ||
</p> | ||
<p>The command line artifact has the builder-style component | ||
<a href="./uk/bot_by/ijhttp_tools/command_line/HttpClientCommandLine.html"> | ||
<code class="language-java">HttpClientCommandLine</code></a> to prepare command line | ||
to run this CLI tool.</p> | ||
<p>There are Maven Plugin | ||
<a href="https://gitlab.com/bot-by/ijhttp-maven-plugin/-/tree/main/maven-plugin"> | ||
ijhttp-maven-plugin</a> and Spring Boot Test autoconfiguration | ||
<a href="https://gitlab.com/bot-by/ijhttp-maven-plugin/-/tree/mai/spring-boot-test"> | ||
ijhttp-spring-boot-test</a> to run HTTP requests on the <em>integration-test</em> phase using | ||
the IntelliJ HTTP Client.</p> | ||
<p>The | ||
<a href="https://github.com/JetBrains/http-request-in-editor-spec">HTTP Request in Editor | ||
Specification</a> describes format these files.</p> | ||
<p>Example requests:</p> | ||
<pre><code class="language-apex"> | ||
GET https://example.com/api/get | ||
|
||
### Add an item | ||
POST https://example.com/api/add | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "entity", | ||
"value": "content" | ||
} | ||
</code></pre> | ||
</body> | ||
</html> |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.