add config provider and examples for images api

- edit reference.*.config to conform to configparser properties
- edit reference.xml.config to reflect xml as marshalling method

Change-Id: I6a6392dfc306de0b57adc8006df11f3b1ce983d5
This commit is contained in:
Sett Wai
2013-06-12 16:07:54 +02:00
parent 4ef9f073cb
commit 2ddb9f8dca
3 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# ======================================================
# reference.json.config
# ------------------------------------------------------
# This configuration is specifically a reference
# implementation for a configuration file.
# You must create a proper configuration file and supply
# the correct values for your Environment(s)
#
# For multiple environments it is suggested that you
# generate specific configurations and name the files
# along the lines of
# <ENVIRONMENT>.<FORMAT>.config
# ======================================================
[marshalling]
serialize_format=json
deserialize_format=json
[images]
base_url=<base_url>
api_version=<v1/v2>
primary_image=<image_id>
secondary_image=<different_image_id>

View File

@@ -0,0 +1,24 @@
# ======================================================
# reference.json.config
# ------------------------------------------------------
# This configuration is specifically a reference
# implementation for a configuration file.
# You must create a proper configuration file and supply
# the correct values for your Environment(s)
#
# For multiple environments it is suggested that you
# generate specific configurations and name the files
# along the lines of
# <ENVIRONMENT>.<FORMAT>.config
# ======================================================
[marshalling]
serialize_format=xml
deserialize_format=xml
[images]
base_url=<base_url>
api_version=<v1/v2>
primary_image=<image_id>
secondary_image=<different_image_id>