lib/firstjob_api/publication.rb in firstjob_api-1.0.7 vs lib/firstjob_api/publication.rb in firstjob_api-1.0.8

- old
+ new

@@ -31,11 +31,11 @@ response = publication.publish() end def publish # Post publication - response = FirstjobApi.post("/api/publish_job", + response = FirstjobApi.post("/publish_job", FirstjobApi.options.merge( body: FirstjobApi.body.merge({publish_job: self.body}).to_json ) ) response_body = HttpParser.parse_json_response(response) @@ -51,11 +51,11 @@ "#{FirstjobApi.base_uri}/jobs/#{slug}" end def get_postulants # Get postulants - response = FirstjobApi.post("/api/get_applicants_job", + response = FirstjobApi.post("/get_applicants_job", FirstjobApi.options.merge( body: FirstjobApi.body.merge({job_id: @id, slug: @slug}).to_json ) ) response_body = HttpParser.parse_json_response(response) @@ -73,10 +73,10 @@ def postulants @postulantes || get_postulants && @postulantes end def destroy - response = FirstjobApi.post("/api/doregister_job", + response = FirstjobApi.post("/doregister_job", FirstjobApi.options.merge( body: FirstjobApi.body.merge({job_id: id}).to_json ) ) response_body = HttpParser.parse_response(response)