Table of Contents
-
URL
https://t-gadgetapi.herokuapp.com/add/category
-
Request method
POST
-
Request header
- api-key
- token
- api-key
-
Params body
PARAMETER REQUIRED UNIQUE TYPE MAX_LENGTH category_name yes yes text 20 char -
Success response
- code : 201 Created
json :{ "success": true, "message": "add category is success!" }
- code : 201 Created
-
Error Response:
- code : 400 Bad Request
json :{ "success": false,"message": {} }
- code : 401 Unauthorized
json :{ "success": false,"message": {} }
- code : 500 Internal Server Error
json :{ "success": false,"message": "" }
- code : 400 Bad Request
-
URL
https://t-gadgetapi.herokuapp.com/add/testimony
-
Request method
POST
-
Request header
- api-key
- token
- api-key
-
Params body
PARAMETER REQUIRED TYPE MAX_SIZE img_testi yes webp,jpeg,png 200kb -
Success response
- code : 201 Created
json :{ "success": true, "message": "add testimony is success" }
- code : 201 Created
-
Error Response:
- code : 400 Bad Request
json :{ "success": false,"message": {} }
- code : 401 Unauthorized
json :{ "success": false,"message": {} }
- code : 500 Internal Server Error
json :{ "success": false,"message": "" }
- code : 400 Bad Request
-
URL
https://t-gadgetapi.herokuapp.com/add/banner
-
Request method
POST
-
Request header
- api-key
- token
- api-key
-
Params body
PARAMETER REQUIRED TYPE MAX_SIZE banner_desktop yes webp,jpeg,png 200kb banner_mobile yes webp,jpeg,png 200kb -
Success response
- code : 201 Created
json :{ "success": true, "message": "add banner is success!" }
- code : 201 Created
-
Error Response:
- code : 400 Bad Request
json :{ "success": false,"message": {} }
- code : 401 Unauthorized
json :{ "success": false,"message": {} }
- code : 500 Internal Server Error
json :{ "success": false,"message": "" }
- code : 400 Bad Request
-
URL
https://t-gadgetapi.herokuapp.com/add/product
-
Request method
POST
-
Request header
- api-key
- token
- api-key
-
Params body
PARAMETER REQUIRED UNIQUE TYPE MAX_LENGTH product_name yes yes text 250 char price yes no num 11 char kategori yes no text 20 char keyword yes no text 200 char product_img yes no webp,jpeg,png 200kb deskripsi yes no text 1000 char linktp yes no text 200 char linksp yes no text 200 char linklz yes no text 200 char linkwa yes no text 200 char stock yes no num (1,0) 1 -
Success response
- code : 201 Created
json :{ "success": true, "message": "add product is success!" }
- code : 201 Created
-
Error Response:
- code : 400 Bad Request
json :{ "success": false,"message": "" }
- code : 401 Unauthorized
json :{ "success": false,"message": {} }
- code : 500 Internal Server Error
json :{ "success": false,"message": "" }
- code : 400 Bad Request