|
1 | | -# Swagger generated server |
| 1 | +# How to build and create the Spring Boot Server application in a executable java jar file |
2 | 2 |
|
3 | | -Spring Boot Server |
| 3 | +Example: Eclipse, Run as, Maven build |
| 4 | +https://www.youtube.com/watch?v=qDTUYkaXAEc |
4 | 5 |
|
5 | 6 |
|
6 | | -## Overview |
7 | | -This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. |
8 | | -By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core), you can easily generate a server stub. |
9 | | -This is an example of building a swagger-enabled server in Java using the SpringBoot framework. |
| 7 | +# Change default port value in application.properties |
10 | 8 |
|
11 | | -The underlying library integrating swagger to SpringBoot is [springfox](https://github.com/springfox/springfox) |
| 9 | +Use: |
| 10 | +server.contextPath=/testar/1.0.0 |
| 11 | +server.port=8080 |
12 | 12 |
|
13 | | -Start your server as an simple java application |
| 13 | +To: http://localhost:8080/testar/1.0.0/swagger-ui.html |
14 | 14 |
|
15 | | -You can view the api documentation in swagger-ui by pointing to |
16 | | -http://localhost:8080/ |
| 15 | +Use: |
| 16 | +server.contextPath=/testar/1.0.0 |
| 17 | +server.address=10.101.101.6 |
| 18 | +server.port=8090 |
17 | 19 |
|
18 | | -Change default port value in application.properties |
| 20 | +To: http://10.101.101.6:8090/testar/1.0.0/swagger-ui.html |
19 | 21 |
|
20 | 22 |
|
| 23 | +# Example TESTAR Web POST execution |
21 | 24 |
|
22 | | -## Examaples execution |
23 | | -testar.bat sse=web_generic Mode=Generate Sequences=5 SequenceLength=50 ShowVisualSettingsDialogOnStartup=false SuspiciousTitles=.*[eE]rror.*|.*[eE]xcep[ct]i[o?]n.*|.*[bB]ortali.* |
24 | | - |
25 | | - |
26 | | -http://130.4.0.169:8080/testar/1.0.0/swagger-ui.html |
27 | | - |
28 | | - |
| 25 | +Use: |
29 | 26 | params |
30 | 27 | { |
31 | 28 | "mode": "Generate", |
32 | | - "see": "web_generic", |
| 29 | + "sse": "web_generic", |
33 | 30 | "sequenceLength": 50, |
34 | 31 | "sequences": 5, |
35 | 32 | "suspiciousTitles": ".*[eE]rror.*|.*[eE]xcep[ct]i[o?]n.*|.*[bB]ortali.*", |
36 | 33 | "testCaseName": "xxxx" |
37 | 34 | } |
38 | 35 |
|
39 | | -{ |
40 | | - "mode": "Generate", |
41 | | - "see": "web_generic", |
42 | | - "sequenceLength": 3, |
43 | | - "sequences": 1, |
44 | | - "testCaseName": "xxxx" |
45 | | -} |
46 | | - |
| 36 | +To: |
| 37 | +testar.bat sse=web_generic Mode=Generate Sequences=5 SequenceLength=50 SuspiciousTitles=.*[eE]rror.*|.*[eE]xcep[ct]i[o?]n.*|.*[bB]ortali.* |
47 | 38 |
|
| 39 | +# Other useful information |
48 | 40 |
|
49 | 41 | https://stackoverflow.com/questions/615948/how-do-i-run-a-batch-file-from-my-java-application |
0 commit comments