{"openapi":"3.0.0","paths":{"/auth/register/company":{"post":{"operationId":"AccountController_registerCompany","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterCompanyDto"}}}},"responses":{"201":{"description":""}},"tags":["Account"]}},"/auth/register/student":{"post":{"operationId":"AccountController_registerStudent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterStudentDto"}}}},"responses":{"201":{"description":""}},"tags":["Account"]}},"/users/{id}/account":{"delete":{"operationId":"AccountController_deleteAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Account"]},"get":{"operationId":"AccountController_getAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Account"]}},"/auth/login":{"post":{"operationId":"AuthController_login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}}},"responses":{"201":{"description":""}},"tags":["Auth"]}},"/auth/request-password-reset":{"get":{"operationId":"AuthController_requestPasswordRest","parameters":[{"name":"email","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Auth"]}},"/auth/reset-password":{"post":{"operationId":"AuthController_resetPassword","parameters":[{"name":"otp","required":true,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDto"}}}},"responses":{"201":{"description":""}},"tags":["Auth"]}},"/companies/{id}/profile":{"get":{"operationId":"CompanyController_getCompanyProfile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Company"]},"patch":{"operationId":"CompanyController_updateCompanyProfile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyProfileDto"}}}},"responses":{"200":{"description":""}},"tags":["Company"]}},"/students/{userId}/profile":{"get":{"operationId":"StudentController_getStudentProfile","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Student"]},"patch":{"operationId":"StudentController_updateCompanyProfile","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyProfileDto"}}}},"responses":{"200":{"description":""}},"tags":["Student"]}},"/offers/{offerId}/apply":{"post":{"operationId":"OfferApplicationController_apply","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOfferApplicationDto"}}}},"responses":{"201":{"description":""}},"tags":["OfferApplication"]}},"/applications/{applicationId}":{"delete":{"operationId":"OfferApplicationController_cancelApplication","parameters":[{"name":"applicationId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["OfferApplication"]}},"/students/{studentId}/applications":{"get":{"operationId":"OfferApplicationController_getApplicationsByStudentId","parameters":[{"name":"studentId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["OfferApplication"]}},"/offers/{offerId}/applications":{"get":{"operationId":"OfferApplicationController_getApplicationByOfferId","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["OfferApplication"]}},"/offers":{"get":{"operationId":"OfferController_getOffers","parameters":[],"responses":{"200":{"description":""}},"tags":["Offer"]}},"/offers/{offerId}":{"get":{"operationId":"OfferController_getOffer","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Offer"]},"delete":{"operationId":"OfferController_deleteOffer","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Offer"]}},"/companies/{id}/offers":{"get":{"operationId":"OfferController_getOffersByCompanyId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Offer"]},"post":{"operationId":"OfferController_createOffer","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOfferDto"}}}},"responses":{"201":{"description":""}},"tags":["Offer"]}},"/offers/{id}":{"patch":{"operationId":"OfferController_updateOffer","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOfferDto"}}}},"responses":{"200":{"description":""}},"tags":["Offer"]}},"/offers/{offerId}/publish":{"patch":{"operationId":"OfferController_publishOffer","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Offer"]}},"/offers/{offerId}/close":{"patch":{"operationId":"OfferController_closeOffer","parameters":[{"name":"offerId","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Offer"]}},"/test":{"get":{"operationId":"TestController_helloWorld","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}},"/test/auth":{"get":{"operationId":"TestController_testAuth","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}},"/test/admin":{"get":{"operationId":"TestController_testAdminRole","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}},"/test/student":{"get":{"operationId":"TestController_testStudentRole","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}},"/test/company":{"get":{"operationId":"TestController_testCompanyRole","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}},"/test/user":{"get":{"operationId":"TestController_getUser","parameters":[],"responses":{"200":{"description":""}},"tags":["Test"]}}},"info":{"title":"API Archi 4","description":"Documentation de l'API","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"CreateCompanyProfileDto":{"type":"object","properties":{"legalName":{"type":"string","example":"Tech Solutions SAS","description":"Legal name of the company"},"industry":{"type":"string","example":"IT_SERVICES","enum":["AEROSPACE","AGRICULTURE","AUTOMOTIVE","BANKING_INSURANCE","CONSTRUCTION","EDUCATION","ENERGY","HEALTHCARE","HOSPITALITY","IT_SERVICES","LUXURY","MANUFACTURING","MEDIA_ENTERTAINMENT","RETAIL","PUBLIC_SECTOR","TRANSPORT_LOGISTICS"],"description":"Company industry sector"},"description":{"type":"object","example":"We build innovative software solutions.","description":"Company description"},"siret":{"type":"object","example":"12345678901234","description":"14-digit SIRET number"}},"required":["legalName"]},"RegisterCompanyDto":{"type":"object","properties":{"email":{"type":"string","example":"user@example.com","description":"User email address"},"password":{"type":"string","example":"StrongPassword123!","description":"User password"},"profile":{"description":"Company profile details","allOf":[{"$ref":"#/components/schemas/CreateCompanyProfileDto"}]}},"required":["email","password","profile"]},"CreateStudentProfileDto":{"type":"object","properties":{"firstName":{"type":"string","example":"Jean","description":"Student first name"},"lastName":{"type":"string","example":"Dupont","description":"Student last name"},"school":{"type":"object","example":"Sorbonne University","description":"Name of the school"},"degreeName":{"type":"object","example":"Computer Science","description":"Name of the degree"},"startYear":{"type":"object","example":2022,"description":"Start year of studies"},"endYear":{"type":"object","example":2025,"description":"Expected end year"},"currentLevel":{"type":"string","example":"BAC_PLUS_5","enum":["BAC_PLUS_2","BAC_PLUS_3","BAC_PLUS_4","BAC_PLUS_5","BAC_PLUS_6","DOCTORATE"],"description":"Current study level"},"targetLevel":{"type":"string","example":"DOCTORATE","enum":["BAC_PLUS_2","BAC_PLUS_3","BAC_PLUS_4","BAC_PLUS_5","BAC_PLUS_6","DOCTORATE"],"description":"Target study level"},"pastDegrees":{"type":"object","example":["Bachelor"],"description":"List of past degrees"},"skills":{"type":"object","example":["JavaScript","Python"],"description":"List of technical skills"},"fieldOfStudy":{"type":"string","example":"COMPUTER_SCIENCE","enum":["ADMINISTRATION","ARTS_DESIGN","BUSINESS_MANAGEMENT","COMMUNICATION","COMPUTER_SCIENCE","DATA_ANALYTICS","ENGINEERING","FINANCE_ACCOUNTING","HUMAN_RESOURCES","LAW","MARKETING","SALES"],"description":"Main field of study"},"cvUrl":{"type":"object","example":"https://cv.example.com/jean-dupont.pdf","description":"URL to the CV"},"contactPhoneNumber":{"type":"object","example":"+33600000000","description":"Contact phone number"},"contactEmail":{"type":"object","example":"jean.dupont@example.com","description":"Contact email address"}},"required":["firstName","lastName"]},"RegisterStudentDto":{"type":"object","properties":{"email":{"type":"string","example":"user@example.com","description":"User email address"},"password":{"type":"string","example":"StrongPassword123!","description":"User password"},"profile":{"description":"Student profile details","allOf":[{"$ref":"#/components/schemas/CreateStudentProfileDto"}]}},"required":["email","password","profile"]},"LoginDto":{"type":"object","properties":{}},"RegisterDto":{"type":"object","properties":{"email":{"type":"string","example":"user@example.com","description":"User email address"},"password":{"type":"string","example":"StrongPassword123!","description":"User password"}},"required":["email","password"]},"UpdateCompanyProfileDto":{"type":"object","properties":{"legalName":{"type":"string","example":"Tech Solutions SAS","description":"Legal name of the company"},"industry":{"type":"string","example":"IT_SERVICES","enum":["AEROSPACE","AGRICULTURE","AUTOMOTIVE","BANKING_INSURANCE","CONSTRUCTION","EDUCATION","ENERGY","HEALTHCARE","HOSPITALITY","IT_SERVICES","LUXURY","MANUFACTURING","MEDIA_ENTERTAINMENT","RETAIL","PUBLIC_SECTOR","TRANSPORT_LOGISTICS"],"description":"Company industry sector"},"description":{"type":"string","example":"We build innovative software solutions.","description":"Company description"},"siret":{"type":"string","example":"12345678901234","description":"14-digit SIRET number"}}},"CreateOfferApplicationDto":{"type":"object","properties":{"studentId":{"type":"number","example":1,"description":"ID of the student"},"description":{"type":"string","example":"I am very motivated by this internship because...","description":"Cover letter or short pitch"},"cvUrl":{"type":"string","example":"https://supabase.co/storage/v1/object/public/cv/my-cv.pdf","description":"URL to the student CV"}},"required":["studentId","cvUrl"]},"CreateOfferDto":{"type":"object","properties":{"title":{"type":"string","example":"Fullstack Developer Internship","description":"Title of the job offer"},"description":{"type":"string","example":"We are looking for a motivated intern to join our team.","description":"Detailed job description"},"location":{"type":"string","example":"Paris, France","description":"Location of the job"},"salary":{"type":"object","example":1200,"description":"Monthly salary in EUR"},"fieldOfStudy":{"type":"string","example":"COMPUTER_SCIENCE","enum":["ADMINISTRATION","ARTS_DESIGN","BUSINESS_MANAGEMENT","COMMUNICATION","COMPUTER_SCIENCE","DATA_ANALYTICS","ENGINEERING","FINANCE_ACCOUNTING","HUMAN_RESOURCES","LAW","MARKETING","SALES"],"description":"Required field of study for the offer"},"status":{"type":"string","example":"DRAFT","enum":["DRAFT","PUBLISHED"],"description":"Status of the offer. Defaults to DRAFT"}},"required":["title","description","location","fieldOfStudy"]}}}}