Revision 2c0be3d0 lib/rapi/connector.py
b/lib/rapi/connector.py | ||
---|---|---|
159 | 159 |
"""Returns all supported resources and their handlers. |
160 | 160 |
|
161 | 161 |
""" |
162 |
# Important note: New resources should always be added under /2. During a |
|
163 |
# discussion in July 2010 it was decided that having per-resource versions |
|
164 |
# is more flexible and future-compatible than versioning the whole remote |
|
165 |
# API. |
|
162 | 166 |
return { |
163 | 167 |
"/": R_root, |
164 | 168 |
|
... | ... | |
213 | 217 |
rlib2.R_2_instances_name_migrate, |
214 | 218 |
|
215 | 219 |
"/2/jobs": rlib2.R_2_jobs, |
216 |
re.compile(r'/2/jobs/(%s)$' % job_id_pattern):
|
|
220 |
re.compile(r"^/2/jobs/(%s)$" % job_id_pattern):
|
|
217 | 221 |
rlib2.R_2_jobs_id, |
218 |
re.compile(r'/2/jobs/(%s)/wait$' % job_id_pattern):
|
|
222 |
re.compile(r"^/2/jobs/(%s)/wait$" % job_id_pattern):
|
|
219 | 223 |
rlib2.R_2_jobs_id_wait, |
220 | 224 |
|
221 | 225 |
"/2/tags": rlib2.R_2_tags, |
Also available in: Unified diff