Projet

Général

Profil

0011-wip-check-properties-to-decide-between-get-post-endp.patch

Benjamin Dauvergne, 25 mars 2022 12:17

Télécharger (964 octets)

Voir les différences:

Subject: [PATCH 11/11] wip: check properties to decide between get/post
 endpoints

 passerelle/apps/soap/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-