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

https://github.com/korospace/api-tgadget

php-mvc | php-jwt |php-mailer | mysql
https://github.com/korospace/api-tgadget

mysql php-jwt php-mailer php-mvc

Last synced: 8 months ago
JSON representation

php-mvc | php-jwt |php-mailer | mysql

Awesome Lists containing this project

README

          



Logo

T-Gadgetid restful api


This is my first restful api which I made using php native. The purpose of this api is make it easier for me to manage the content on the t-gadget.herokuapp.com.




## Tools & Stack
- [x] PHP Native (MVC)
- [x] firebase/php-jwt
- [x] phpmailer
- [x] rakit validation
- [x] mysql

## Endpoints

- to get the api-key, user must register a new account
- api-key and token are obtained every time the user logs in
- public api-key: `610644b1eba3e`

**use this api-key if you only need data retrieval*

- url structure:

```
https://t-gadgetapi.herokuapp.com/:controller/:method
```
- url previx:

```
https://t-gadgetcors.herokuapp.com/https://t-gadgetapi.herokuapp.com/:controller/:method
```
**use this prefix to avoid blocked by CORS*
- endpoints:

| CONTROLLER | METHOD | AUTH | DETAIL USAGE |
| :--: | :--- | :--: | :--: |
| /user |


  • /register

  • /login

  • /session

  • /edit

  • /logout

  • /delete

| `api-key` `token`| detail
| /get |

  • /socialmedia

  • /countdown

  • /banners

  • /testimonies

  • /statistics

  • /categories

  • /keywords

  • /products

| `api-key` | detail
| /add |

  • /category

  • /banenr

  • /testimoni

  • /product

| `api-key` `token` | detail
| /update |

  • /socialmedia

  • /countdown

  • /product

  • /statistic

| `api-key` `token` | detail
| /delete |

  • /category

  • /banner

  • /testimoni

  • /product

| `api-key` `token` | detail