lean-mind / huella-positiva

6 stars 3 forks source link

Register an ESAL #10

Closed mariasoria closed 1 year ago

mariasoria commented 1 year ago
Marius9595 commented 1 year ago

This functionality is working (RestAPI works as expected and the database confirms it)

In order to avoid testing another feature "Confirmation of email" this has to be executed in database :

At this point, this contact person has permission to register an ESAL

Firstly, it is mandatory to be logged:

Login works with Json Web Token, so the response will give us a Token in order to access some user functionalities and other token for authorization (as Contact Person confirmed Role)

Finally, It is necessary to provide in body the ESAL information (there are validations behind the scenes at least some fields) by POST request:

It can be checked in database in the following tables:

image