tanszek:oktatas:web_technologia_alapjai:8_heti_feladat
8. heti feladat - Web technológia alapjai
Készíts felületet a felhasználók adatlapjának megjelenítéséhez!
- Hozz létre egy új lapot
user.htmlnéven! - A megjelenítendő felhasználó nevét fogadd query paraméterként (pl.
user.html?id=microsoft)! - Kérdezd le a felhasználó adatait (dokumentáció: GitHub API - Get a user)!
- Jelenítsd meg esztétikusan a felhasználó alábbi adatait:
- avatar_url (képként)
- name
- blog
- location
- bio
- public_repos
- followers
- Ha egy adatmező
nullértéket vagy üres sztringet tartalmaz, annak nem kell megjelennie a felületen! - A felhasználói adatlap legyen megnyitható a keresőfelületről (
user-search.html)!
Elkészült megoldásodat töltsd fel GitHub repository-dba!
Példa
Példa felhasználói adatokra:
GET https://api.github.com/users/microsoft
{
"login": "microsoft",
"id": 6154722,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/6154722?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/microsoft",
"html_url": "https://github.com/microsoft",
"followers_url": "https://api.github.com/users/microsoft/followers",
"following_url": "https://api.github.com/users/microsoft/following{/other_user}",
"gists_url": "https://api.github.com/users/microsoft/gists{/gist_id}",
"starred_url": "https://api.github.com/users/microsoft/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/microsoft/subscriptions",
"organizations_url": "https://api.github.com/users/microsoft/orgs",
"repos_url": "https://api.github.com/users/microsoft/repos",
"events_url": "https://api.github.com/users/microsoft/events{/privacy}",
"received_events_url": "https://api.github.com/users/microsoft/received_events",
"type": "Organization",
"user_view_type": "public",
"site_admin": false,
"name": "Microsoft",
"company": null,
"blog": "https://opensource.microsoft.com",
"location": "Redmond, WA",
"email": null,
"hireable": null,
"bio": "Open source projects and samples from Microsoft",
"twitter_username": "OpenAtMicrosoft",
"public_repos": 6726,
"public_gists": 0,
"followers": 88231,
"following": 0,
"created_at": "2013-12-10T19:06:48Z",
"updated_at": "2024-09-05T16:46:53Z"
}
tanszek/oktatas/web_technologia_alapjai/8_heti_feladat.txt · Last modified: 2025/04/01 07:59 by kissa
