Update the post jobs offer handler to accept a new field for the company picture
Add a new handler to retreive the company picture
Why ?
To allow job poster to add their company image on thiers job post
How?
We have added an S3 self hosted object storage called minio
ROUTES:
"/jobs" POST: post a job (ther_is a new field called company_image who take a base64 encoding of and image)
"/jobs/{jobID}/image" GET: get the job company image
"/jobs" GET: get the jobs list (in every job there is a field named has_image bool)
Steps to verify:
move to the backend folder with cd ./backend
run make start-postrges to run an initialized database
run make run to launch the api
run make e2etest to run the test
Update the post jobs offer handler to accept a new field for the company picture Add a new handler to retreive the company picture
Why ? To allow job poster to add their company image on thiers job post
How? We have added an S3 self hosted object storage called minio
ROUTES:
"/jobs" POST
: post a job (ther_is a new field calledcompany_image
who take a base64 encoding of and image)"/jobs/{jobID}/image" GET
: get the job company image"/jobs" GET
: get the jobs list (in every job there is a field namedhas_image
bool)Steps to verify: move to the backend folder with cd ./backend run
make start-postrges
to run an initialized database runmake run
to launch the api runmake e2etest
to run the test** Screenshots (optional)