Projet

Général

Profil

0001-api_entreprise-precise-acoss_covid-endpoint-descript.patch

Thomas Noël, 15 avril 2020 12:45

Télécharger (2,02 ko)

Voir les différences:

Subject: [PATCH] api_entreprise: precise acoss_covid endpoint description
 (#41706)

 passerelle/apps/api_entreprise/models.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
passerelle/apps/api_entreprise/models.py
156 156

  
157 157
    SIREN_PARAM = {
158 158
        'description': _('firm SIREN number'),
159
        'example_value': '44317013900036',
159
        'example_value': '443170139',
160 160
    }
161 161

  
162 162
    SIRET_PARAM = {
......
329 329
    @endpoint(perm='can_access',
330 330
              pattern=r'(?P<siren>\w+)/$',
331 331
              example_pattern='{siren}/',
332
              description=_('Get firm\'s related numbers'),
332
              description=_('Get firm\'s annual workforce data'),
333 333
              parameters={
334 334
                  'siren': SIREN_PARAM,
335 335
                  'object': OBJECT_PARAM,
......
341 341

  
342 342
    @endpoint(perm='can_access',
343 343
              pattern=r'(?P<year>\w+)/(?P<month>\w+)/(?P<siren>\w+)/$',
344
              description=_('Get firm\'s related monthly numbers'),
344
              description=_('Get firm\'s monthly workforce data, by SIREN'),
345 345
              parameters={
346 346
                  'year': YEAR_PARAM,
347 347
                  'month': MONTH_PARAM,
......
358 358

  
359 359
    @endpoint(perm='can_access',
360 360
              pattern=r'(?P<year>\w+)/(?P<month>\w+)/(?P<siret>\w+)/$',
361
              description=_('Get firms\'s related monthly numbers'),
361
              description=_('Get firm\'s monthly workforce data, by SIRET'),
362 362
              parameters={
363 363
                  'year': YEAR_PARAM,
364 364
                  'month': MONTH_PARAM,
365
-