Skip to content

Commit

Permalink
Add Vacancy ID in the vacancy response object
Browse files Browse the repository at this point in the history
  • Loading branch information
scruti committed Nov 25, 2024
1 parent 4d7ea3a commit ca3985b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/requests/publishers/ats_api/v1/vacancies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
publish_on
schools],
properties: {
id: { type: :string, example: "9d8f5715-2e7c-4e64-8e34-35f510c12e66" },
external_advert_url: { type: :string, example: "https://example.com/jobs/123" },
publish_on: { type: :string, format: :date },
expires_at: { type: :string, format: :date },
Expand Down Expand Up @@ -441,7 +442,7 @@

path "/ats-api/v{api_version}/vacancies/{id}" do
parameter name: "api_version", in: :path, type: :string, description: "api_version"
parameter name: "id", in: :path, type: :string, description: "id"
parameter name: "id", in: :path, type: :string, description: "id of the vacancy"

let(:id) { create(:vacancy, :external).id }

Expand All @@ -463,6 +464,7 @@
schema type: :object,
additionalProperties: false,
properties: {
id: { type: :string },
external_advert_url: { type: :string },
publish_on: { type: :string },
expires_at: { type: :string },
Expand Down

0 comments on commit ca3985b

Please sign in to comment.