Skip to content

korospace/api-tgadget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8dfbf83 · Mar 17, 2023

History

16 Commits
Mar 17, 2023
Sep 26, 2021
Oct 28, 2022
Oct 28, 2022
Mar 17, 2023
Sep 24, 2021
Sep 24, 2021
Mar 17, 2023
Mar 17, 2023

Repository files navigation

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

  • PHP Native (MVC)
  • firebase/php-jwt
  • phpmailer
  • rakit validation
  • 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

Releases

No releases published

Packages

No packages published