# Game-hub Project/ Screenshots

**URL:** <https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101>\
**Category:** React\
**Created:** [August 6, 2024, 6:58pm UTC](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101 "2024-08-06T18:58:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razieh](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Razieh](https://forum.codewithmosh.com/u/Razieh)\
**Post date:** [August 6, 2024, 6:58pm UTC](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101/1 "2024-08-06T18:58:25Z")

</div>

Hi every one  
In react course part 2 we add screenshots of game to the game details page. in the site when we check screenshots we see this:

 ![1](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/299a0ee43f1566b97bcf115290271befcc5e28a1.png)

as we see in the pic for end point we need game\_pk which I have no idea what is it and the type of this is string.

but when we are codeing, we replace pK with id which is a number like this:

 ![2](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/42819c8dca786b3d1be00312244395d54e3e6edc.jpeg)

does anyone know the reason?

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [August 6, 2024, 8:32pm UTC](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101/2 "2024-08-06T20:32:50Z")

</div>

It’s hard to tell from the screenshot, i think it may be the wrong documentation. I assume you’d want to call a single endpoint and get screenshot, text, and slug data and handle it all at once rather than call 4 endpoints for 4 kinds of data.

Traditionally when there are a large list of items you call the endpoint/id to only be sent the data for one game. Then it looks like it’s handling the \<screenshot prop as data.

I would look at another documentation for the endpoint /id and see if there is a screenshot property there, that would probably explain, if it’s working of course.

Documentation is often notorious for leaving out key details cause the people who made the endpoints know their apps so well they assume others will understand easily, but it’s often not the case.

As devs we usually have to look at the network tab in dev tools and view the data of a response, then we can piece together how to handle the data or realize if we are using the wrong endpoint.

---

<div class="post-metadata">

**Author:** ![Larisabrownb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/larisabrownb/32/8765_2.png) [@Larisabrownb](https://forum.codewithmosh.com/u/Larisabrownb)\
**Post date:** [October 16, 2024, 10:25am UTC](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101/3 "2024-10-16T10:25:49Z")

</div>

Game Hub makes storing and managing your DRM-free game collection easier. Download installers, DLCs and bonus content and Game Hub will save your downloads. Game [love language test](https://lovelanguagetest.org/) Details Page: Dive deeper into your favorite games with a dedicated Game Details page, featuring rich information, trailers, screenshots , …
