Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

REST API Phonebook on PHP

Ready for using in 3 steps:

  1. Edit DB.php file to set DB credentials.

  2. Execute "composer install" command to install Doctrine and Guzzle dependencies.

  3. Send requests to URL http://www.your_host.com/record

(The migration to create a new table will start automatically.)

Available queries:

// return all records
GET /record

// return a specific record
GET /record/{id}

// return a specific record searching parts of the name
GET /record/?search=name

// create a new record
POST /record

// update an existing record
PUT /record/{id}

// update an existing record
PATCH /record/{id}

// delete an existing record
DELETE /record/{id}

To add or update queries send data in json format in request body, for example:
{
    "first_name": "Leo",
    "last_name": "Messi",
    "phone_number": "+15 999 444224455",
    "country_code": "ZW",
    "time_zone": "America/Denver"
}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages