hi'Spec is a website that helps you choose the right laptop according to your needs. With a compare feature, you can freely bring the laptop side to side, and decide which will suitable for your needs.
Clone the project
git clone https://github.com/hi-specs/BE-hi-SPEC.gitGo to the project directory
cd BE-hi-SPECInstall dependency
go mod tidyIf you're interested in using our Open Api, this is an example of how to do so.
Final Project Capstone Program Immersive Alterra Academy
Go to Open API »
Admin
| Feature User | Endpoint | Param | JWT Token | Function |
|---|---|---|---|---|
| GET | /dashboard | - | + | Display the total user, product, and transaction. |
| GET | /users | - | + | Get all user. |
| GET | /transactions | - | + | Get all transaction. |
| POST | /product | - | + | Create product with OpenAI. |
User
| Feature Groups | Endpoint | Param | JWT Token | Function |
|---|---|---|---|---|
| GET | /user | - | + | Get user by id. |
| GET | /user/search | Email User | + | Search user. |
| POST | /login | - | - | Login. |
| POST | /register | - | - | Register. |
| POST | /user/fav/add/{id} | Product ID | + | Wishlist. |
| PATCH | /user/{id} | User ID | + | Update user by id. |
| DELETE | /user/{id} | User ID | + | Displaying Group detail by id. |
| DELETE | /group/{id} | ID Groups | YES | Delete Groups. |
| DELETE | /user/fav/{id} | Wishlist ID | + | Delete Groups. |
Product
| Feature Chats | Endpoint | Param | JWT Token | Function |
|---|---|---|---|---|
| GET | /products | - | - | Get all product. |
| GET | /product/{id} | Product ID | - | Get product. |
| GET | /product/search | Name/Category/MinPrice/MaxPrice | - | Send a message to the groups. |
| PATCH | /product/{id} | Product ID | + | Edit product. |
| DELETE | /product/{id} | Product ID | + | Delete product. |
Transaction
Several commands make use of Locations features, as shown below.
| Feature Locations | Endpoint | Param | JWT Token | Function |
|---|---|---|---|---|
| POST | /transaction | - | + | Checkout product. |
| GET | /transaction/user/{id} | User ID | + | Get transaction list from user. |
| GET | /transaction/download/{id} | Transaction ID | + | Download transaction detail. |

