---
description: March 23, 2024
---

# CRUD API

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FQFY0yrp49iKfn2yQW6JR%2Fimage.png?alt=media&#x26;token=e3b7bce5-0622-405a-9c61-cb3381f0d9ff" alt=""><figcaption></figcaption></figure>

When we visited the api.php and the city for its directory it shows all of the city that we can modify&#x20;

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FeEPXzN7J0iN19tBt4zYY%2Fimage.png?alt=media&#x26;token=6057ec40-6d0c-4060-a1a7-47d641005b0e" alt=""><figcaption></figcaption></figure>

Then we will try to retrieve some data using curl just to test&#x20;

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F18XGCxxx9nqr2kgeUFdg%2Fimage.png?alt=media&#x26;token=f06f3b86-a8ae-44df-84ff-926e60a66b9b" alt=""><figcaption></figcaption></figure>

After that we will try to update the city Kingston&#x20;

We can see here that the kingston city has been updated and replaced by cityname KyouCity

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F8HnM6lrUZKw2Favib3kF%2Fimage.png?alt=media&#x26;token=84fa18c5-5fdc-4adb-9deb-a13e6a811793" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FbgjA9eVgyxNcZbev05SU%2Fimage.png?alt=media&#x26;token=b807029e-794d-4beb-b871-636be3f2c8e1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F8nAE4MLkjybHpk2TW8TH%2Fimage.png?alt=media&#x26;token=af8b4fde-eb62-40c9-ad76-47dd38ec0da4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FyJlQENB1pcAh8IXfjqUT%2Fimage.png?alt=media&#x26;token=39df8e43-2f25-46b1-845e-1876c8714e1b" alt=""><figcaption></figcaption></figure>
