Projet

Général

Profil

0003-solis-sp_fr-add-fixme-to-deprecate-ping-endpoints-21.patch

Lauréline Guérin, 11 octobre 2019 14:37

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH 3/3] solis, sp_fr: add fixme to deprecate ping endpoints
 (#21978)

 passerelle/apps/solis/models.py | 1 +
 passerelle/apps/sp_fr/models.py | 1 +
 2 files changed, 2 insertions(+)
passerelle/apps/solis/models.py
150 150

  
151 151
    @endpoint(name='ping', description=_('Check Solis API availability'))
152 152
    def ping(self, request):
153
        # FIXME deprecated this endpoint (replaced by 'up' endpoint)
153 154
        return self.check_status()
154 155

  
155 156
    @endpoint(name='referential', perm='can_access',
passerelle/apps/sp_fr/models.py
109 109

  
110 110
    @endpoint(name='ping', description=_('Check Solis API availability'))
111 111
    def ping(self, request):
112
        # FIXME deprecated this endpoint (replaced by 'up' endpoint)
112 113
        self.check_status()
113 114
        return {'err': 0}
114 115

  
115
-