Skip to content

Commit 35d7ac4

Browse files
author
FalkWolsky
committed
Small fix for Readme and test in restAPI Plugin
1 parent 1fb2980 commit 35d7ac4

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

server/api-service/README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ The contents should look like this:
5858

5959
Important is here the command -Dspring.profiles.active= - as it is responsible for the selection of the right apllication settings file too.
6060

61+
## Build locally
62+
63+
Next action is to build the project, so all lowcoder-plugins are built. This is a precondition for the lowcoder-server to start.
64+
65+
```shell
66+
cd server/api-service
67+
68+
mvn clean package
69+
```
70+
6171
## Start the debug locally
6272

6373
Make sure that the apllication settings file contains the full local configuration you need. The apllication settings file is named application-\<profile>.yaml and reside in server/api-service/lowcoder-server/src/main/resources. The profile relates to your setting in the launch file. For example: -Dspring.profiles.active=lowcoder would make sure, lowcoder seeks the right config at application-lowcoder.yaml
@@ -102,7 +112,9 @@ Configure the Run/Debug configuration as shown below.
102112
</tr>
103113
</table>
104114

105-
Next, execute the following commands in sequence
115+
## Build locally
116+
117+
Next action is to build the project, so all lowcoder-plugins are built. This is a precondition for the lowcoder-server to start.
106118

107119
```shell
108120
cd server/api-service
@@ -113,18 +125,12 @@ mvn clean package
113125
After Maven package runs successfully, you can start the Lowcoder server with IntelliJ IDEA.
114126

115127

116-
## Build and start the Lowcoder server jar
117-
118-
1. Clone Lowcoder repository
119-
2. Next, execute the following commands in sequence
128+
## Start the Lowcoder server jar
120129

121130
```shell
122-
cd server/api-service
123-
124-
mvn clean package
125-
126131
java -Dpf4j.mode=development -Dspring.profiles.active=lowcoder -Dpf4j.pluginsDir=lowcoder-plugins -jar lowcoder-server/target/lowcoder-api-service.jar
127132
```
133+
or respective for debugging: Navigate to the file server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/ServerApplication.java This is the main class. Now you can use the IDE to "run" it or "debug it".
128134

129135

130136
Now, you can check the status of the service by visiting http://localhost:8080 through your browser.

server/api-service/lowcoder-plugins/restApiPlugin/src/test/java/org/lowcoder/plugin/restapi/RestApiEngineTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void testEncodingParams() {
180180
assertTrue(result.isSuccess());
181181
assertNotNull(result.getData());
182182
JsonNode url = ((ObjectNode) result.getData()).get("url");
183-
assertEquals("\"http://postman-echo.com/post?param=value+with+blank\"", url.toString());
183+
assertEquals("\"https://postman-echo.com/post?param=value+with+blank\"", url.toString());
184184
})
185185
.verifyComplete();
186186
}

0 commit comments

Comments
 (0)