Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 0397ef52

Přidáno uživatelem Michal Seják před asi 4 roky(ů)

Re #8476 - Finalized `create_certificate`. Update of swagger main.py

Zobrazit rozdíly:

swagger_server/controllers/certificates_controller.py
68 68

  
69 69
    if connexion.request.is_json:
70 70
        body = CertificateRequest.from_dict(connexion.request.get_json())  # noqa: E501
71
        if body.subject is None or body.usage is None or body.validity_days is None:
72
            return 400
71
        # if body.subject is None or body.usage is None or body.validity_days is None:
72
        #     return 400
73 73

  
74 74
        key = KEY_SERVICE.create_new_key()                              # TODO pass key
75 75
        subject = Subject(
......
176 176
    setup()                                                             # TODO remove after issue fixed
177 177

  
178 178
    if connexion.request.is_json:
179
        return 400
180 179
        filtering = Filtering.from_dict(connexion.request.get_json())  # noqa: E501
180
        print(filtering)
181
        return 200
181 182
    else:
182 183
        return 400
183 184

  

Také k dispozici: Unified diff