Skip to content

Instantly share code, notes, and snippets.

@Oluwatobilobaoke
Last active July 13, 2020 14:37
Show Gist options
  • Save Oluwatobilobaoke/bb3c65264805e9317e69733f89f6cdf7 to your computer and use it in GitHub Desktop.
Save Oluwatobilobaoke/bb3c65264805e9317e69733f89f6cdf7 to your computer and use it in GitHub Desktop.
**Profile Creation**
Send as form data, Header application/json
url: http://localhost:3000/v1/employee/profile
image: upload file,
firstName:
lastName:
userType
phoneNo
hngId
userName
location
track
availability
dateOfBirth
employeeCv
userId
response
```
{
"status": "success",
"data": {
"verification_status": "Pending",
"employee_access_id": null,
"first_name": "tobii",
"last_name": "kfjvrihviwe",
"user_type": "HNG",
"phone_no": "09022224422",
"hng_id": "HNG-2234449",
"username": "khfkghglnvirhgrh",
"image": "https://res.cloudinary.com/oluwatobiloba/image/upload/v1594647237/akvjjbzdk4x5z3oogmrx.jpg",
"location": "Lagos, Nigeria",
"track": "Backend",
"availability": "Remote",
"dob": "01-01-1990",
"employee_id": "d9b03ce5-a701-4550-a34e-a972a14e29f1",
"views": "0",
"employee_cv": "https://google.com/myfile",
"user_id": "6f71ecd3-db56-4fd9-91aa-c0df3081a71d",
"updatedAt": "2020-07-13T13:33:40.619Z",
"createdAt": "2020-07-13T13:33:40.619Z",
"id": 4
}
}
```
update
http://localhost:3000/v1/employee/profile/employerid
pass anything
response
```
{
"status": "success",
"data": {
"id": 4,
"first_name": "tobii",
"last_name": "kfjvrihviwe",
"username": "khfkghglnvirhgrh",
"location": "Lagos, Nigeria",
"track": "Backend",
"phone_no": "09022224422",
"image": "https://res.cloudinary.com/oluwatobiloba/image/upload/v1594648731/rgm1nmz71avsc4nudweu.png",
"gender": null,
"hng_id": "HNG-2234449",
"availability": "Remote",
"dob": "01-01-1990",
"employee_cv": "https://google.com/myfile",
"views": "0",
"employee_id": "d9b03ce5-a701-4550-a34e-a972a14e29f1",
"user_id": "6f71ecd3-db56-4fd9-91aa-c0df3081a71d",
"referredBy": null,
"user_type": "HNG",
"verification_status": "Pending"
}
}
```
Get by username
http://localhost:3000/v1/employee/username
```
{
"status": "success",
"data": {
"employee": {
"id": 4,
"first_name": "tobii",
"last_name": "kfjvrihviwe",
"username": "khfkghglnvirhgrh",
"location": "Lagos, Nigeria",
"track": "Backend",
"phone_no": "09022224422",
"image": "https://res.cloudinary.com/oluwatobiloba/image/upload/v1594648731/rgm1nmz71avsc4nudweu.png",
"gender": null,
"hng_id": "HNG-2234449",
"availability": "Remote",
"dob": "01-01-1990",
"employee_cv": "https://google.com/myfile",
"views": "0",
"employee_id": "d9b03ce5-a701-4550-a34e-a972a14e29f1",
"user_id": "6f71ecd3-db56-4fd9-91aa-c0df3081a71d",
"referredBy": null,
"user_type": "HNG",
"verification_status": "Pending"
},
"skills": [],
"portfolios": []
}
}
```
Get by id
http://localhost:3000/v1/employee/profile/employerid
SKILLS
Add Skills
url http://localhost:3000/v1/employee/skill
body
```
{
"skill_description": "Desiging",
"employee_id": "2bf5d6b6-c308-441c-a3aa-618024605db1"
}
```
Get Skill
url http://localhost:3000/v1/employee/employeeId/skill/
PORTFOLIO
add Porfolio
url http://localhost:3000/v1/employee/portfolio
body
```
url {
"title": "New Portolio",
"description": "shsifjdnivuidjncpewi",
"link": "ljcmioenceownipohe!",
"employee_id": "2bf5d6b6-c308-441c-a3aa-618024605db1"
}
```
@Oluwatobilobaoke
Copy link
Author

updaated it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment