Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nithink-142/php-crud

A simple php api to perform crud opearions.
https://github.com/nithink-142/php-crud

mysql php xampp

Last synced: about 1 month ago
JSON representation

A simple php api to perform crud opearions.

Awesome Lists containing this project

README

        

# PHP CRUD

A simple php api to perform crud opearions.

### Setup Instructions

1. Install XAMPP (or any other PHP development environment).
2. Clone this repo and move it to the xampp/htdocs/ directory.

##### API Endpoints

#### GET

all users

```bash
http://localhost/php-crud/users/
```

single user

```bash
http://localhost/php-crud/user/1
```

#### POST

create user

```bash
http://localhost/php-crud/user/save
```

req body

```bash
{
"name":"one",
"email":"[email protected]",
"mobile":"1234567890"
}
```

#### PUT

edit user

```bash
http://localhost/php-crud/user/1/edit
```

req body

```bash
{
"name":"oneone",
"email":"[email protected]",
"mobile":"1234567890"
}
```

#### DELETE

delete user

```bash
http://localhost/php-crud/user/1/delete
```