Skip to content

Commit

Permalink
feat: exposition de la documentation des routes /v3/jobs (#1660)
Browse files Browse the repository at this point in the history
* fix: expected status code for POST /v3/jobs

* feat: ajout des routes /v3/jobs dans la documentation openapi

* chore: update openapi snapshot
  • Loading branch information
moroine authored Nov 21, 2024
1 parent 897d231 commit 4f41282
Show file tree
Hide file tree
Showing 7 changed files with 1,430 additions and 78 deletions.
2 changes: 1 addition & 1 deletion server/src/http/controllers/v3/jobs/jobs.controller.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const jobsApiV3Routes = (server: Server) => {
const user = getUserFromRequest(req, zRoutes.post["/v3/jobs"]).value
const offer = jobsRouteApiv3Converters.convertToJobsPartnersWritableApi(req.body)
const id = await createJobOffer(user, offer)
return res.status(201).send({ id })
return res.status(200).send({ id })
}
)

Expand Down
2 changes: 1 addition & 1 deletion shared/constants/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const CFD_REGEX = new RegExp("^[A-Z0-9]{8}$")
export const CODE_POSTAL_REGEX = new RegExp("^[0-9]{5}$")
export const INE_REGEX = new RegExp(INE_REGEX_PATTERN)
export const RNCP_REGEX = new RegExp("^RNCP\\d{3,5}$")
export const SIRET_REGEX = new RegExp("^[0-9]{14}$")
export const SIRET_REGEX = new RegExp("^\\d{14}$")
export const CODE_NAF_REGEX = new RegExp("^[0-9]{4}[A-Z]$")
export const UAI_REGEX = new RegExp("^[0-9]{7}[a-zA-Z]$")
export const CODE_ROME_REGEX = new RegExp("^[A-Z]\\d{4}$")
Expand Down
Loading

0 comments on commit 4f41282

Please sign in to comment.