Lami app provides various kinds of Indonesian cultural information, including catalogs, events and merchandise
Features in Lami app :
🙎 Users
At users, there are features for login either user or admin, we also make CRUD for the user here
Feature User | Endpoint | Param | JWT Token | Function |
---|---|---|---|---|
POST | /register | - | NO | new account registration |
POST | /login | - | NO | login for user/admin |
GET | /users | - | YES | read usre's profile |
PUT | /users | - | YES | edit user's profile |
DELETE | /users | - | YES | delete user's account |
POST | /users/stores | - | YES | updgrade user account to UMKM |
👨💻 Submission
At submissions, there are features for getting the submission list of UMKM and event, and also the verification for the UMKM and event
Feature Admin | Endpoint | Param | JWT Token | Role | Function |
---|---|---|---|---|---|
GET | /stores/submissions | - | YES | admin | get the list of UMKM account submission list |
PUT | /stores/submissions | user id | YES | admin | update/verify UMKM account submission status |
GET | /events/submissions | - | YES | admin | get the list of event submission list |
GET | /events/submissions | event id | YES | admin | get the detail of event submission list |
PUT | /events/submissions | event id | YES | admin | update/verify event submission status |
🍴 Cultures
At culutres, there are features for the culture management and report of culture
| Feature Restaurant | Endpoint | Param | JWT Token | Role | Function | | --- | --- | --- | --- | --- | | POST | /cultures | - | YES | admin | create new culture | | PUT | /cultures | - | YES | admin | edit the culture information | | DELETE | /cultures | - | YES | admin | delete culture | | GET | /cultures | - | NO | all | get list of cultures | | GET | /cultures | culture id | NO | all | get the culture information detail | | POST | /cultures/reports | culture id | YES | user, UMKM | insert report of culture | | GET | /cultures/reports | culture id | YES | admin | get report of culture |
⭐ Events
At events, there are features for event management and information of event join management
Feature Favourite | Endpoint | Param | Role | JWT Token | Function |
---|---|---|---|---|---|
POST | /events | - | YES | user, UMKM | insert event submission |
GET | /events | - | NO | all | get a list of events that have been approved by the admin |
GET | /events | event id | NO | all | get detail information of event |
DELETE | /events | event id | YES | user, UMKM | delete user's event |
GET | /users/events | event id | YES | user, UMKM | get a list of user's events |
POST | /events/participants | - | YES | user, UMKM | join event |
GET | /events/participants | - | YES | user, UMKM | get a list of joined event |
POST | /events/comments | - | YES | user, UMKM | create payment for join event |
GET | /events/comments | event id | NO | all | get list of comment in event |
POST | /events/payments | - | YES | user, UMKM | create payment for join event |
GET | /events/payments/status | - | YES | user, UMKM | get payment status |
GET | /events/payment_details | - | YES | user, UMKM | get payment detail |
GET | /events/attendees | event id | YES | user, UMKM | get list of event attendees in pdf |
💭 Products
At Products, there are features for product management, cart, order and rating product
Feature Comment & Rating | Endpoint | Param | JWT Token | Role | Function |
---|---|---|---|---|---|
POST | /products | - | YES | UMKM | insert product for UMKM |
GET | /products | - | NO | all | get all products |
GET | /products | product id | NO | all | get product detail |
PUT | /products | product id | YES | UMKM | edit product detail |
DELETE | /products | product id | YES | ||
GET | /carts | - | YES | user, UMKM | get cart information |
PUT | /carts | cart id | YES | user, UMKM | edit product quantity in cart |
DELETE | /carts | cart id | YES | user, UMKM | delete product from cart |
POST | /orders | - | YES | user, UMKM | insert order product |
GET | /orders | - | YES | user, UMKM | get history order |
POST | /products/ratings | product id | YES | user, UMKM | add product rating and review |
GET | /products/ratings | product id | NO | all | get product rating and review |
![](./images/erd_capstone.png)
Clone the project
git clone https://github.com/alta-capstone-groupproject2/backend.git
Go to the project directory
cd backend
if you want to consume our api, here's the way !
https://app.swaggerhub.com/apis-docs/Alfin7007/lamiApp/1.0