-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luis Moro
committed
Jan 5, 2018
1 parent
940349a
commit ae408ed
Showing
2 changed files
with
50 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
target/ | ||
.mvn/ | ||
|
||
application-*.yml | ||
|
||
### STS ### | ||
.classpath | ||
.factorypath | ||
|
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,50 @@ | ||
# vmoptions: -Dspring.profiles.active=test | ||
|
||
server.port: 9090 | ||
|
||
api: | ||
# Requests accept just this headers (optinal property). If property not exists, all headers are accepted | ||
# acceptedHeaders: | ||
# - "accept" | ||
# - "Content-Type" | ||
|
||
# When is not find in repository, then will try to do a request in this host | ||
host: "http://www.mocky.io" | ||
|
||
magicalHeaders: "Accept,User-Agent,Content-Type" | ||
|
||
# Default headers to do a request | ||
defaultHeaders: | ||
- | ||
headerName: "Access-Control-Allow-Origin" | ||
headerValues: | ||
- "Connection" | ||
- "Keep-Alive" | ||
- | ||
headerName: "Content-Type" | ||
headerValues: | ||
- "application/json;charset=UTF-8" | ||
|
||
# Alternative hosts | ||
# When a request uri match with some pattern, than this host will be used | ||
uriConfigurations: | ||
- | ||
host: "http://www.mocky2.io" | ||
pattern: "begin-of-uri/|another-pattern/" | ||
backup: false | ||
- | ||
host: "http://www.mocky3.io" | ||
pattern: "teste/|test/" | ||
|
||
# Paths of json | ||
file: | ||
# Look for this path to find json with a request | ||
base: "${MOCK_API_FILE_BASE}" | ||
extension: ".json" | ||
# Save request (cache) in this path | ||
backup.path: "${MOCK_BACKUP_FILE_BASE}" | ||
|
||
# Initialize app in capture mode. All requests will be saved | ||
captureState: true | ||
|
||
debug: true |