Skip to content

Commit

Permalink
Add diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
ddippolito committed Jan 20, 2025
1 parent 3f57d5a commit f473ea6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
Binary file added public/teaching_vacancies_api_diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 32 additions & 8 deletions spec/swagger_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,45 @@
version: "v1",
description: <<~DESCRIPTION,
# Teaching Vacancies ATS API
Integrating with Teaching Vacancies will allow you to post job listings directly from your
Application Tracking System (ATS) and HR systems to our website on behalf of schools or trusts.
This document introduces our preferred integration patterns, and the data required for each listing
and is intended to help you evaluate the effort required to build an integration.
We’ve replaced our old RSS feed integration with a new HTTP API. This new approach is push-based;
to integrate with Teaching Vacancies, you (the ATS or HR system) call our API to publish, update,
or remove job listings on behalf of schools or trusts.
This document outlines the API’s key features, the data required for each listing,
and the steps needed to set up an integration.
This documentation describes each endpoint’s request parameters, response formats, and possible errors,
so you can seamlessly integrate Teaching Vacancies into your ATS workflow.
## Introduction
The **Teaching Vacancies ATS API** enables you to manage job listings on behalf of schools or trusts
through your own Applicant Tracking System (ATS) or HR software.
By calling this API, you can:
- **List** all your active vacancies (with pagination)
- **Retrieve** details for a single vacancy
- **Create** new vacancies
- **Update** existing vacancies
- **Delete** vacancies when they’re no longer needed
![API Diagram](/teaching_vacancies_api_diagram.jpg)
## Authentication
You’ll need a valid API key (`X-Api-Key`) for all endpoints.
Each request requires a valid API key in the `X-Api-Key` header to ensure only authorised
clients can manage vacancies.
Include this key in the X-Api-Key header of each request.
If the key is missing or invalid, the API will respond with an HTTP 401 (Unauthorized) status.
This ensures that only approved clients can create, update, or remove job listings.
If you ever need a new or replacement key, let us know, and we’ll assist you with the process.
**Base URL**: `/ats-api/v1`
**Supported Formats**: JSON
**Authentication**: API key in `X-Api-Key`
DESCRIPTION
},
paths: {},
Expand Down

0 comments on commit f473ea6

Please sign in to comment.