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
- Host: GitHub
- URL: https://github.com/korospace/api-tgadget
- Owner: korospace
- Created: 2021-09-24T01:09:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T07:09:29.000Z (about 3 years ago)
- Last Synced: 2025-06-02T07:45:02.259Z (10 months ago)
- Topics: mysql, php-jwt, php-mailer, php-mvc
- Language: PHP
- Homepage: https://t-gadgetapi.herokuapp.com/
- Size: 1.16 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
| /get |
- /socialmedia
- /countdown
- /banners
- /testimonies
- /statistics
- /categories
- /keywords
- /products
| /add |
- /category
- /banenr
- /testimoni
- /product
| /update |
- /socialmedia
- /countdown
- /product
- /statistic
| /delete |
- /category
- /banner
- /testimoni
- /product