Logo
Explore Help
Register Sign In
Yasuke/moto
1
0
Fork 0
You've already forked moto
Code Issues Pull Requests Packages Projects Releases Wiki Activity
moto/scripts/template/lib/urls.py.j2

14 lines
273 B
Plaintext
Raw Normal View History

Add more files and lines when scaffolding (#1222) * auto-generatr urls.py * add mocks to moto/__init__.py and moto/backends.py * add uri to urls.py * change output of scaffold.py
2017-10-02 07:17:02 +09:00
from __future__ import unicode_literals
from .responses import {{ service_class }}Response
url_bases = [
"https?://{{ endpoint_prefix }}.(.+).amazonaws.com",
]
Fix scaffold to support rest-json style API (#1291) * append appropriate urls when scaffolding * make dispatch for rest-api * fix dispatch for rest-json * fix moto/core/response to obtain path and body parameters * small fixes * remove unused import * fix get_int_param * fix scaffold * fix formatting of scaffold * fix misc * escape service to handle service w/ hyphen like iot-data * escape service w/ hyphen * fix regexp to extract region from url * escape service * fix syntax * skip loading body to json object when request body is None
2017-10-25 03:45:39 +09:00
{% if api_protocol == 'rest-json' %}
response = {{ service_class }}Response()
{% endif %}
Add more files and lines when scaffolding (#1222) * auto-generatr urls.py * add mocks to moto/__init__.py and moto/backends.py * add uri to urls.py * change output of scaffold.py
2017-10-02 07:17:02 +09:00
url_paths = {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 405ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API