0011-wip-check-properties-to-decide-between-get-post-endp.patch
passerelle/apps/soap/models.py | ||
---|---|---|
160 | 160 |
endpoints.append(endpoint(**kwargs)) |
161 | 161 |
endpoints[-1].object = self |
162 | 162 |
endpoints[-1].func = lambda request: None |
163 |
if input_schema: |
|
163 |
if input_schema and input_schema.get('properties'):
|
|
164 | 164 |
endpoints[-1].http_method = 'post' |
165 | 165 |
else: |
166 | 166 |
endpoints[-1].http_method = 'get' |
167 |
- |