Skip to content

Commit 64fdcd2

Browse files
committed
added fixed linkedin swagger text
1 parent ec31979 commit 64fdcd2

1 file changed

Lines changed: 131 additions & 0 deletions

File tree

nextstep-backend/src/openapi/swagger.yaml

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ tags:
1919
description: Operations related to chat rooms
2020
- name: Resume
2121
description: Operations related to resume ATS scoring
22+
- name: LinkedIn Jobs
23+
description: Operations related to LinkedIn job postings
2224

2325
paths:
2426
/post:
@@ -1114,6 +1116,135 @@ paths:
11141116
'400':
11151117
description: Bad Request
11161118

1119+
/linkedin-jobs/jobs:
1120+
get:
1121+
tags:
1122+
- LinkedIn Jobs
1123+
summary: Retrieve jobs from LinkedIn based on skills and role
1124+
parameters:
1125+
- name: skills
1126+
in: query
1127+
required: true
1128+
schema:
1129+
type: string
1130+
description: Comma-separated list of skills (maximum 3)
1131+
- name: role
1132+
in: query
1133+
required: true
1134+
schema:
1135+
type: string
1136+
description: Desired role
1137+
- name: location
1138+
in: query
1139+
required: false
1140+
schema:
1141+
type: string
1142+
description: Job location
1143+
- name: dateSincePosted
1144+
in: query
1145+
required: false
1146+
schema:
1147+
type: string
1148+
description: Date range for job postings (e.g., "past day", "past week", "past month")
1149+
- name: jobType
1150+
in: query
1151+
required: false
1152+
schema:
1153+
type: string
1154+
description: Type of job (e.g., "full time", "part time", "contract")
1155+
- name: experienceLevel
1156+
in: query
1157+
required: false
1158+
schema:
1159+
type: string
1160+
description: Experience level (e.g., "entry level", "mid level", "senior level", "all")
1161+
responses:
1162+
'200':
1163+
description: List of jobs retrieved successfully
1164+
content:
1165+
application/json:
1166+
schema:
1167+
type: array
1168+
items:
1169+
type: object
1170+
properties:
1171+
position:
1172+
type: string
1173+
description: Job position
1174+
company:
1175+
type: string
1176+
description: Company name
1177+
location:
1178+
type: string
1179+
description: Job location
1180+
jobUrl:
1181+
type: string
1182+
description: Job posting URL
1183+
companyLogo:
1184+
type: string
1185+
description: URL of the company logo
1186+
date:
1187+
type: string
1188+
description: Date the job was posted
1189+
salary:
1190+
type: string
1191+
description: Salary information
1192+
'400':
1193+
description: Bad request - Missing skills or role
1194+
'500':
1195+
description: Internal server error
1196+
1197+
/linkedin-jobs/jobs/{id}:
1198+
get:
1199+
tags:
1200+
- LinkedIn Jobs
1201+
summary: Retrieve details of a specific job by ID
1202+
parameters:
1203+
- name: id
1204+
in: path
1205+
required: true
1206+
schema:
1207+
type: string
1208+
description: Job ID
1209+
responses:
1210+
'200':
1211+
description: Job details retrieved successfully
1212+
content:
1213+
application/json:
1214+
schema:
1215+
type: object
1216+
properties:
1217+
position:
1218+
type: string
1219+
description: Job position
1220+
company:
1221+
type: string
1222+
description: Company name
1223+
location:
1224+
type: string
1225+
description: Job location
1226+
description:
1227+
type: string
1228+
description: Detailed job description
1229+
jobUrl:
1230+
type: string
1231+
description: Job posting URL
1232+
companyLogo:
1233+
type: string
1234+
description: URL of the company logo
1235+
date:
1236+
type: string
1237+
description: Date the job was posted
1238+
salary:
1239+
type: string
1240+
description: Salary information
1241+
'400':
1242+
description: Bad request - Missing job ID
1243+
'404':
1244+
description: Job not found
1245+
'500':
1246+
description: Internal server error
1247+
11171248
components:
11181249
schemas:
11191250
Post:

0 commit comments

Comments
 (0)