Skip to content

[Recruitment] - updateOrganizationImage endpoint #2724

@Aaryan1203

Description

@Aaryan1203

Desired Changes

We want the images on the home page of the recruitment screen to be configurable. In order to do that, we need to add two new image fields to the organization model and create an endpoint to update them.

FIrst you will have to add two new fields to the organization model. They should be named interestedInApplyingImage and exploreAsGuestImage and should both be optional fields. You should then create a migration for this by running yarn prisma:migrate

Then, you will have to create an endpoint to be able to update these images. This should be under the route /organization/images/update. It should take in a list of images that updates both images every time one image is updated (you would keep the image that has not been updated the same). Ensure everything works by adding unit tests and showing manual tests from postman

Acceptance Criteria

  • There are two new image fields in the organizations model named interestedInApplyingImage and exploreAsGuestImage
  • There is a new endpoint under the route /organization/images/update
  • Unit tests are added
  • Screenshots of manual tests to ensure everything works

Screenshots (as needed)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions