Skip to content

Commit

Permalink
teste
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Moro committed Jan 5, 2018
1 parent 940349a commit ae408ed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
target/
.mvn/

application-*.yml

### STS ###
.classpath
.factorypath
Expand Down
50 changes: 50 additions & 0 deletions src/main/resources/application.yml
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

0 comments on commit ae408ed

Please sign in to comment.