Skip to content

BadeaAndreea/utech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Introducere

Aplicatia noastra consta intr-o platforma integrata cu Youtube, in care este posibila cautarea videoclipurilor, crearea propriului playlist si ofera si o lista de clipuri favorite.

Aceastra aplicatie se adreseaza tuturor persoanelor care obisnuiesc sa aceeseze platforma Youtube, insa crearea si editarea playlist-ului poate fi facuta numai de catre cei care detin un cont de utilizator. Fiecare utilizator isi va creea un cont si va avea parte de un content personalizat. Initial utilizatorul se poate loga (daca are deja cont) sau se inregistreaza in vederea crearii unui cont. Fiecare utilizator isi poate adauga in propriul playlist o colectie de videclipuri favorite; acestea putand fi partajate prietenilor si accesate de catre acestia prin solicitarea de acces in cazul playlist-urilor private.

Nu in ultimul rand, trebuie mentionat faptul ca aplicatia noastra nu poate fi utilizata fara accesul unei retele Wi-fi, ori utilizarea de date mobile. Youtube este una dintre cele mai utile aplicatii datorita posibilitatii de a aceesa videoclipuri oriunde te-ai afla. Alte produse similar pe piata putem enumera: Spotify, ITube, Apple Music, BlackPlayer,etc.

Pentru partea de backend am ales sa utilizam Java Springboot si Maven, iar pentru baza de date PostgreSQL. Pentru a creea aceasta aplicatie vom folosi librariile com.google.api-client si com.google.goolge-api-services. Totodata, pentru a folosi API-ul Youtube-v3, am obtinut un API-key de pe https://developers.google.com/youtube pe care il includem in fisierul de proprietati.

Interfețe aplicație

1

2

POST: /api/login
GET : /api/account
POST : /api/account
PUT : /api/account/{id}
POST : /api/account/change-password
GET : /api/search/{keyword}
GET : /api/getFavouriteVideos
GET : /api/getFavouriteVideos/{id}
POST : /api/addVideoToFavourite
DELETE: /api/deleteVideoFromFavourite/{id}

Components:

Login form
Register form
User details
Video search
Favourite video list
Delete video
All video list

User actions:

Login
Register
Update personal details
Search video by keyword
Update favourite video list
Get favourite video list
Delete video from favourite liste
Get all videos list

API REST

POST: /api/login
{
   "username":"string",
   "password":"string",
}
GET : /api/account
{
"id": 1,
"username": "string",
"firstName": "string",
"lastName": "string",
"email": "[email protected]",
"activated": true,
"createdDate": "2018-10-24T11:43:44.431638Z"
}
POST : /api/account

Request :

{
"username": "string",
"firstName": "string",
"lastName": "string",
"email": "[email protected]",
"createdDate": "2018-10-24T11:43:44.431638Z",
"password" : "string"
}

Response: 201 (Created)

PUT : /api/account/{id}

Request :

{
"username": "string",
"firstName": "string",
"lastName": "string",
"email": "[email protected]",
"createdDate": "2018-10-24T11:43:44.431638Z",
"password" : "string"
}

Response: 201 (Created)

POST : /api/account/change-password

Request:

{
"oldPassword" : "string",
"newPassword" : "string"
}

Response: 200 (ok)

GET : /api/search/{keyword}

Response:

[
{
"videoId" : Long,
"title": string,
"thumbnail" , string
}
]
GET : /api/getFavouriteVideos

Response:

[
{
"videoId" : Long,
"title": string,
"thumbnail" , string
}
]
GET : /api/getFavouriteVideos/{id}

Response

{
"videoId" : Long,
"title": string,
"thumbnail" , string
}
POST : /api/addVideoToFavourite

Request:

{
"videoId" : long,
"title": string,
"thumbnail" , string
}

Response : 201 (Created)

DELETE: /api/deleteVideoFromFavourite/{id}

Response: 200 (ok)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published