Skip to content

Commit b654b0a

Browse files
Fixed broken image links
1 parent 0bf7f2a commit b654b0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

homework-projects/guides/making-your-API-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Head on over to your GitHub account and create a repository called *`username`*
1414

1515
If you already have such a repository, just go on to the next step.
1616

17-
![Create the repo](/assets/API-guide-1.png)
17+
![Create the repo](/homework-projects/assets/API-guide-1.png)
1818

1919
❗Make sure that it matches your username or it won’t work!
2020

@@ -28,7 +28,7 @@ If you already have such a repository, just go on to the next step.
2828
4. Once you are ready with your JSON file, add, commit and push the changes to `main` so that you have the file on your repository.
2929
5. Head over to the repo on GitHub and verify that your file is there and that all is good.
3030

31-
![See the JSON file](/assets/API-guide-2.png)
31+
![See the JSON file](/homework-projects/assets/API-guide-2.png)
3232

3333
❗Be mindful about your data format. Note wether you should use an object or an array of objects and form your file accordingly.
3434

@@ -38,11 +38,11 @@ Now comes the fun part! You can use the JSON file in a FETCH to get and use the
3838

3939
Your URL for FETCH will be the raw content of the JSON file that you added. Head on to the `raw` version of your file:
4040

41-
![Access the raw content](/assets/API-guide-3.png)
41+
![Access the raw content](/homework-projects/assets/API-guide-3.png)
4242

4343
Copy the URL and use it for fetching the data.
4444

45-
![Copy the URl](/assets/API-guide-4.png)
45+
![Copy the URl](/homework-projects/assets/API-guide-4.png)
4646

4747
Now you have a publicly hosted API! To access this information, all you need to do is make an API call like you normally would (FETCH), parse that data (iterate through an array of objects), and then use the data in whatever way you need for your project!
4848

0 commit comments

Comments
 (0)