{"info":{"title":"EBMS Customer API","version":"0.0.1"},"swagger":"2.0","produces":["application/json"],"consumes":["application/json"],"host":"bms.empfehlungsbund.de","basePath":"/customer_api/v1","tags":[{"name":"jobs","description":"Operations about jobs"},{"name":"job_application","description":"Operations about job_applications"}],"paths":{"/jobs":{"get":{"description":"Get all (visible) job ads","produces":["application/json"],"parameters":[{"in":"header","name":"Authorization","description":"Bearer $API_TOKEN","type":"string","required":true},{"in":"query","name":"all","description":"Show all jobs instead of current visible","type":"boolean","default":false,"required":false},{"in":"query","name":"page","type":"integer","format":"int32","default":1,"required":false},{"in":"query","name":"per_page","type":"integer","format":"int32","default":50,"required":false}],"responses":{"200":{"description":"Get all (visible) job ads","schema":{"$ref":"#/definitions/CustomerApi_Entities_JobResponse"}}},"tags":["jobs"],"operationId":"getJobs"}},"/job_application":{"post":{"description":"Send job application","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"header","name":"Authorization","description":"Bearer $API_TOKEN","type":"string","required":true},{"name":"postJobApplication","in":"body","required":true,"schema":{"$ref":"#/definitions/postJobApplication"}}],"responses":{"201":{"description":"Send job application","schema":{"$ref":"#/definitions/CustomerApi_Entities_ApplicationSuccessResponse"}}},"tags":["job_application"],"operationId":"postJobApplication"}}},"definitions":{"CustomerApi_Entities_JobResponse":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_JobEntity"},"description":"List of job ads"},"meta":{"type":"object","properties":{"current_page":{"type":"integer","format":"int32","description":"Current page"},"total_pages":{"type":"integer","format":"int32","description":"Total pages"},"total_count":{"type":"integer","format":"int32","description":"Total count"}},"description":"Pagination meta data"}},"description":"CustomerApi_Entities_JobResponse model"},"CustomerApi_Entities_JobEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the job"},"nummer":{"type":"string","description":"Job unique identification number"},"pubdate":{"type":"string","format":"date-time","description":"Publication date of the job"},"custom_weight":{"type":"string","enum":["low","medium_low","normal","medium_high","high"],"description":"Display importance"},"remote_type":{"type":"string","enum":["none","partial","full_remote"],"description":"Remote work type"},"remote_country_list":{"type":"array","description":"List of remote countries"},"sub_job_type":{"type":"string","enum":["fachkraft","fuehrungskraft","freelancer","hilfskraft","praktikum","werkstudent","volunteer","ausbildung","weiterbildung","duales_studium"],"description":"Sub job type"},"salary_interval":{"type":"string","enum":["yearly","monthly","hourly"],"description":"Salary interval"},"salary_min":{"type":"number","format":"float","description":"Minimum salary"},"salary_max":{"type":"number","format":"float","description":"Maximum salary"},"visible":{"type":"boolean","description":"Is the job visible"},"team_id":{"type":"integer","format":"int32","description":"ID of the team (Addon of EBMS - Abteilungen/Teams)"},"internal":{"type":"boolean","description":"Is the job for internal applicants only"},"last_content_update":{"type":"string","format":"date-time","description":"Last content update"},"banner_url":{"type":"string","description":"URL of the banner image"},"portal_type":{"type":"string","enum":["it","office","mint","sano","hoga","lager","bau"],"description":"Default Portal-Type category"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the job"},"translated_contents":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_TranslatedContent"}},"benefits":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_BenefitEntity"}},"people":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_PersonEntity"}},"organisation_addresses":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_OrganisationAddressEntity"}},"divisions":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_DivisionEntity"}},"application_questions":{"type":"array","items":{"$ref":"#/definitions/CustomerApi_Entities_ApplicationQuestionEntity"}}}},"CustomerApi_Entities_TranslatedContent":{"type":"object","properties":{"title":{"type":"string","description":"Title of the job for the current locale"},"description":{"type":"string","description":"Description of the job"},"locale":{"type":"string","description":"Language of the content"},"tags":{"type":"string","description":"Tags of the job"}}},"CustomerApi_Entities_BenefitEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the benefit"},"title_de":{"type":"string","description":"Title of the benefit in German"},"title_en":{"type":"string","description":"Title of the benefit in English"}}},"CustomerApi_Entities_PersonEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the person"},"first_name":{"type":"string","description":"First name of the person"},"last_name":{"type":"string","description":"Last name of the person"},"position":{"type":"string","description":"Position of the person"},"full_name":{"type":"string","description":"Full name of the person"},"name":{"type":"string","description":"Combined Name of the person"}}},"CustomerApi_Entities_OrganisationAddressEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the organisation address"},"street":{"type":"string","description":"Street of the organisation address"},"number":{"type":"string","description":"Number of the organisation address"},"postcode":{"type":"string","description":"Postcode of the organisation address"},"hidden":{"type":"boolean","description":"Is the address hidden"},"city":{"type":"string","description":"City of the organisation address"},"federal_state":{"type":"string","description":"Federal state of the organisation address"},"country":{"type":"string","description":"Country of the organisation address"},"display_name":{"type":"string","description":"Display name of the organisation address"}}},"CustomerApi_Entities_DivisionEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the division"},"name_de":{"type":"string","description":"Name of the division in German"},"name_en":{"type":"string","description":"Name of the division in English"}}},"CustomerApi_Entities_ApplicationQuestionEntity":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the application question"},"question_de":{"type":"string","description":"Question in German"},"question_en":{"type":"string","description":"Question in English"},"answer_type":{"type":"string","enum":["text_area","radio_buttons","check_boxes"],"description":"Type of the answer"},"answers":{"type":"array","description":"List of possible answers for radio_buttons and check_boxes"}}},"postJobApplication":{"type":"object","properties":{"applicant":{"type":"object","properties":{"email":{"type":"string"},"utm_source":{"type":"string","description":"UTM Source parameter for further analysis and source tracking"},"job_id":{"type":"integer","format":"int32","description":"ID of the job - if omitted, the job will be marked unsolicited"},"first_name":{"type":"string"},"last_name":{"type":"string"},"telephone":{"type":"string"},"city":{"type":"string"},"postcode":{"type":"string"},"street":{"type":"string"},"country_code":{"type":"string","description":"Country Code"},"postal_address":{"type":"string","description":"Alternative to supply indivual address parameters"},"salutation":{"type":"string","enum":["male","female","both"]},"intro_letter":{"type":"string","description":"Plaintext intro letter (e.g. given in an email)"},"comment":{"type":"string","description":"Comment of applicant"},"applicant_language":{"type":"string","enum":["de","en"],"default":"de"},"privacy_accepted":{"type":"boolean","description":"Applicant already consented/informed about privacy policy of BMS"},"send_receipt":{"type":"boolean","description":"Send an email with a confirmation receipt to applicant","default":true},"employee_referral":{"type":"string","description":"Name of an employee of the company that caused the application (Coworkr referrel, Employer referral programs etc.)"},"recommendations":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"Empfehlungsbund Recommendation Code"},"use_as_referral":{"type":"boolean","description":"Company that will be applied to, can contact the issuer company of the Empfehlungscode to ask about the referral","default":false}},"required":["code"]}},"application_question_answers":{"type":"array","items":{"type":"object","properties":{"question_id":{"type":"string"},"answer":{"type":"string","description":"Answer to the question: Single string or array of strings for chec_boxes"}},"required":["question_id","answer"]}},"attachments":{"type":"array","items":{"type":"object","properties":{"content_type":{"type":"string","description":"Mime Type of content"},"original_filename":{"type":"string","description":"Filename for display"},"content":{"type":"string","description":"Base64 encoded binary"}},"required":["content_type","original_filename","content"]}}},"required":["email"]}},"required":["applicant"],"description":"Send job application"},"CustomerApi_Entities_ApplicationSuccessResponse":{"type":"object","properties":{"process_id":{"type":"integer","format":"int32","description":"ID of the application process"},"applicant_identification":{"type":"string","description":"Identification of the applicant - used to communicate shorter application Id to applicant"},"status_page":{"type":"string","description":"URL to the status page of the application process for the applicant"}},"description":"CustomerApi_Entities_ApplicationSuccessResponse model"}}}