Skip to content

Commit ae408ed

Browse files
author
Luis Moro
committed
teste
1 parent 940349a commit ae408ed

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
target/
22
.mvn/
33

4-
application-*.yml
5-
64
### STS ###
75
.classpath
86
.factorypath

src/main/resources/application.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# vmoptions: -Dspring.profiles.active=test
2+
3+
server.port: 9090
4+
5+
api:
6+
# Requests accept just this headers (optinal property). If property not exists, all headers are accepted
7+
# acceptedHeaders:
8+
# - "accept"
9+
# - "Content-Type"
10+
11+
# When is not find in repository, then will try to do a request in this host
12+
host: "http://www.mocky.io"
13+
14+
magicalHeaders: "Accept,User-Agent,Content-Type"
15+
16+
# Default headers to do a request
17+
defaultHeaders:
18+
-
19+
headerName: "Access-Control-Allow-Origin"
20+
headerValues:
21+
- "Connection"
22+
- "Keep-Alive"
23+
-
24+
headerName: "Content-Type"
25+
headerValues:
26+
- "application/json;charset=UTF-8"
27+
28+
# Alternative hosts
29+
# When a request uri match with some pattern, than this host will be used
30+
uriConfigurations:
31+
-
32+
host: "http://www.mocky2.io"
33+
pattern: "begin-of-uri/|another-pattern/"
34+
backup: false
35+
-
36+
host: "http://www.mocky3.io"
37+
pattern: "teste/|test/"
38+
39+
# Paths of json
40+
file:
41+
# Look for this path to find json with a request
42+
base: "${MOCK_API_FILE_BASE}"
43+
extension: ".json"
44+
# Save request (cache) in this path
45+
backup.path: "${MOCK_BACKUP_FILE_BASE}"
46+
47+
# Initialize app in capture mode. All requests will be saved
48+
captureState: true
49+
50+
debug: true

0 commit comments

Comments
 (0)