Reasoning: most of the other endpoints of this project refer to the models and views created in project.
this will create skills, genres and other features that are needed to edit a user.
{
"success": true,
"user": {
"first_name": "1234",
"last_name": "fffan",
"gender_name": "Male",
"DOB": "1999-06-22",
"about_me": "I created myspace!!!",
"skills": [
{
"skill_id": 4,
"skill_name": "Camera"
},
{
"skill_id": 1,
"skill_name": "Baterista"
},
{
"skill_id": 3,
"skill_name": "Writer"
}
],
"genres": [
{
"genre_id": 1,
"genre_name": "Regional"
},
{
"genre_id": 3,
"genre_name": "Rap"
},
{
"genre_id": 2,
"genre_name": "pop"
}
],
"artists": [
{
"user_artist_id": 31,
"artist": "kakakmakakkaka"
},
{
"user_artist_id": 32,
"artist": "akkakakkaka"
},
{
"user_artist_id": 33,
"artist": "jnnbn23j32ajaj"
}
],
"youtube_vids": [
{
"youtube_id": 17,
"video_id": "abc"
},
{
"youtube_id": 18,
"video_id": "ajkajkajajjaja"
}
],
"vimeo_vids": [
{
"vimeo_id": 13,
"video_id": "1234355"
},
{
"vimeo_id": 14,
"video_id": "3456"
}
],
"nationalities": [
{
"nationality_id": 1,
"nationality_name": "mexico"
},
{
"nationality_id": 2,
"nationality_name": "Argentina"
}
]
}
}
Goal: by the end you should implement understand how:
account creation, verifying email, editing a user, deleting a user and refreshing a user works.
Reasoning: most of the other endpoints of this project refer to the models and views created in project.
Beginning
1 Download postman
2 generating fake user data /api/auth/generateData
this will create skills, genres and other features that are needed to edit a user.
Jumping into registering a user
Using the /api/auth/register endpoint
Logging in a user
Post using /api/auth/login
Editing a user
Patch 8000/api/auth/user
Getting a user
get /api/auth/user
Refreshing a token
post /api/auth/refreshWC
Attributes of a a user.