-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_posting.http
67 lines (61 loc) · 1.72 KB
/
job_posting.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
POST {{host}}/users/login
Content-Type: application/json
{
"username": "bant3",
"password": "testpass123"
}
###
# REGISTER A NEW USER
POST {{host}}/users/
Content-Type: application/json
{
"username": "bant3",
"password": "testpass123"
}
###
#8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14
##CREATE JOB ADVERT
POST {{host}}/job-advert/
Content-Type: application/json
Authorization: Token 8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14
{
"title": "New JOB",
"company_name": "New Company",
"employment_type": "full_time",
"experience_level": "entry",
"description": "Job description",
"location": "Location",
"job_description": "Detailed job description",
"is_published": true
}
###
### APPLY TO JOB
### 7fac9fd0-22a1-488e-a846-bfa1442a7156
POST {{host}}/job-application/
Content-Type: application/json
Authorization: Token 8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14
{
"job_advert": "7fac9fd0-22a1-488e-a846-bfa1442a7156",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone": "1234567890",
"linkedin_profile": "https://linkedin.com/in/johndoe",
"github_profile": "https://github.com/johndoe",
"website": "https://johndoe.com",
"years_of_experience": "1-2",
"cover_letter": "Cover letter content"
}
### 4c30edd0-8672-43b9-9059-0f949e9635b5 job_ap_id
###
GET {{host}}/job-application/4c30edd0-8672-43b9-9059-0f949e9635b5/
Content-Type: application/json
Authorization: Token 8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14
###
GET {{host}}/job-advert/7fac9fd0-22a1-488e-a846-bfa1442a7156/
Content-Type: application/json
Authorization: Token 8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14
###
GET {{host}}/job-adverts/
Content-Type: application/json
Authorization: Token 8f0c5d53ad7b0c2f446eee92fbd0f5f80df7ee14