GET/user/jobs

GET/user/jobs

Returns all the user's jobs

Basic Information

cURL

curl --location 'https://www.api.remoet.dev/user/jobs' --header 'Authorization: Bearer <Your key>'

HTTP

GET /user/jobs HTTP/1.1
Host: www.api.remoet.dev
Authorization: Bearer <Your key>

Javascript Fetch

const myHeaders = new Headers();
myHeaders.append("Authorization", `Bearer ${key}`);
 
const requestOptions = {
  method: "GET",
  headers: myHeaders,
};
 
fetch("https://www.api.remoet.dev/user/jobs", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

DTO

// Note that the return type is an array of PublicUserJobDto
class PublicUserJobDto {
  createdAt: Date;
  updatedAt: Date;
  userId: string;
  title: string;
  startDate: Date;
  endDate: Date;
  isCurrent: boolean;
  isPublic: boolean;
  companyName: string;
  technologies: string[];
  description: string;
  isRemote: boolean;
  companyUrl: string;
  companyId: string;
}

Response

[
    {
        "createdAt": <Date>,
        "updatedAt": <Date>,
        "userId": <string>,
        "title": <string>,
        "startDate": <Date>,
        "endDate": <Date>,
        "isCurrent": <boolean>,
        "isPublic": <boolean>,
        "companyName": <string>,
        "technologies": [<string>],
        "description": <string>,
        "isRemote": <boolean>,
        "companyUrl": <string>,
        "companyId": <string>
    }
]

Non authenticated response

{
    "statusCode": 401,
    "message": "Invalid API Key",
    "error": "Unauthorized"
}