{"swagger":"2.0","basePath":"","info":{"title":"Charleville-M\u00e9zi\u00e8res - demandes","version":"0.1.0"},"paths":{"\/inhabitant_requests":{"get":{"tags":["InhabitantRequest"],"operationId":"getInhabitantRequestCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of InhabitantRequest resources.","responses":{"200":{"description":"InhabitantRequest collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/InhabitantRequest"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]}},"\/inhabitant_requests\/{id}":{"get":{"tags":["InhabitantRequest"],"operationId":"getInhabitantRequestItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a InhabitantRequest resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"InhabitantRequest resource response","schema":{"$ref":"#\/definitions\/InhabitantRequest"}},"404":{"description":"Resource not found"}}}},"\/send_contact_messages":{"post":{"tags":["SendContactMessage"],"operationId":"postSendContactMessageCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a SendContactMessage resource.","responses":{"202":{"description":"SendContactMessage resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"sendContactMessage","in":"body","description":"The new SendContactMessage resource","schema":{"$ref":"#\/definitions\/SendContactMessage-post_send_contact_message_denorm"}}]}},"\/send_issue_messages":{"post":{"tags":["SendIssueMessage"],"operationId":"postSendIssueMessageCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a SendIssueMessage resource.","responses":{"202":{"description":"SendIssueMessage resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"sendIssueMessage","in":"body","description":"The new SendIssueMessage resource","schema":{"$ref":"#\/definitions\/SendIssueMessage-post_send_issue_message_denorm"}}]}},"\/send_job_application_messages":{"post":{"tags":["SendJobApplicationMessage"],"operationId":"postSendJobApplicationMessageCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a SendJobApplicationMessage resource.","responses":{"202":{"description":"SendJobApplicationMessage resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"sendJobApplicationMessage","in":"body","description":"The new SendJobApplicationMessage resource","schema":{"$ref":"#\/definitions\/SendJobApplicationMessage-post_send_job_application_message_denorm"}}]}},"\/send_municipal_decree_messages":{"post":{"tags":["SendMunicipalDecreeMessage"],"operationId":"postSendMunicipalDecreeMessageCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a SendMunicipalDecreeMessage resource.","responses":{"202":{"description":"SendMunicipalDecreeMessage resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"sendMunicipalDecreeMessage","in":"body","description":"The new SendMunicipalDecreeMessage resource","schema":{"$ref":"#\/definitions\/SendMunicipalDecreeMessage"}}]}}},"security":[{"JWT":[]}],"securityDefinitions":{"JWT":{"type":"apiKey","in":"header","description":"Value for the Authorization header","name":"Authorization"}},"definitions":{"Attachment-post_send_job_application_message_denorm":{"type":"object","description":""},"InhabitantRequest":{"type":"object","description":"","properties":{"id":{"type":"integer"},"date":{"type":"string"},"type":{"type":"string"},"referal_team":{"type":"integer"},"content":{"type":"string"},"canal":{"type":"string"},"third_party":{"$ref":"#\/definitions\/ThirdParty"},"attachments":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"job_reference":{"type":"string"},"coordinates":{"type":"number"}},"required":["date","type","referal_team","content","canal","third_party"]},"Location":{"type":"object","description":"","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"}}},"PSOThirdParty":{"type":"object","description":"","required":["type","gender","email"],"properties":{"type":{"type":"string"},"gender":{"type":"string"},"name":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"siret":{"type":"string"},"address_complement":{"type":"string"},"mobile_phone":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"external_id":{"type":"string"}}},"SendContactMessage-post_send_contact_message_denorm":{"type":"object","description":"","properties":{"senderEmail":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"senderPhone":{"type":"string"},"senderAddress":{"type":"string"},"senderAddressComplement":{"type":"string"},"senderPostCode":{"type":"string"},"senderCity":{"type":"string"},"senderGender":{"enum":["M","F"],"type":"string"},"senderFirstName":{"type":"string"},"senderLastName":{"type":"string"},"message":{"type":"string"},"recaptchaToken":{"type":"string"}}},"SendIssueMessage-post_send_issue_message_denorm":{"type":"object","description":"","properties":{"senderEmail":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"senderPhone":{"type":"string"},"senderAddress":{"type":"string"},"senderAddressComplement":{"type":"string"},"senderPostCode":{"type":"string"},"senderCity":{"type":"string"},"senderGender":{"enum":["M","F"],"type":"string"},"senderFirstName":{"type":"string"},"senderLastName":{"type":"string"},"message":{"type":"string"},"type":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"recaptchaToken":{"type":"string"}}},"SendJobApplicationMessage-post_send_job_application_message_denorm":{"type":"object","description":"","properties":{"jobReference":{"type":"string"},"jobTitle":{"type":"string"},"senderGender":{"enum":["M","F"],"type":"string"},"senderLastName":{"type":"string"},"senderFirstName":{"type":"string"},"senderEmail":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"senderPhone":{"type":"string"},"fieldOfWork":{"type":"string"},"resume":{"$ref":"#\/definitions\/Attachment-post_send_job_application_message_denorm"},"motivationLetter":{"$ref":"#\/definitions\/Attachment-post_send_job_application_message_denorm"},"beginDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"agreement":{"$ref":"#\/definitions\/Attachment-post_send_job_application_message_denorm"},"formation":{"type":"string"},"situation":{"type":"string"},"preparedDegree":{"type":"string"},"institution":{"type":"string"},"duration":{"type":"string"},"recaptchaToken":{"type":"string"}}},"SendMunicipalDecreeMessage":{"type":"object","description":"","properties":{"date_start":{"type":"string","format":"date-time"},"date_end":{"type":"string","format":"date-time"},"category":{"type":"string"},"details":{"type":"string"},"location":{"$ref":"#\/definitions\/Location"},"third_party_owner":{"type":"string"},"third_party":{"$ref":"#\/definitions\/PSOThirdParty"},"length":{"type":"number"},"width":{"type":"number"},"alignment_offset":{"type":"number"},"parking_affected":{"type":"boolean"},"free_traffic_width":{"type":"boolean"},"tipper_company":{"type":"string"},"vehicles":{"type":"string"},"requested_places":{"type":"integer"},"additional_panel":{"type":"integer"},"removal_company":{"type":"string"},"urbanism_authorization_number":{"type":"string"},"urbanism_authorization_date":{"type":"string"},"attachments":{"type":"string"}},"required":["parking_affected","free_traffic_width","vehicles","attachments"]},"ThirdParty":{"type":"object","description":"","required":["type","gender","email"],"properties":{"type":{"type":"string"},"gender":{"type":"string"},"name":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"string"},"zip_code":{"type":"string"},"city":{"type":"string"},"address_complement":{"type":"string"},"mobile_phone":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"external_id":{"type":"string"}}}}}