Skip to content

Commit

Permalink
fix : contract api
Browse files Browse the repository at this point in the history
  • Loading branch information
teranixbq committed Dec 17, 2023
1 parent 6ab545a commit 02a740c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

test:
# running on directory
go test -v -cover

cover:
# running on directory with view out
go test -coverprofile=cover.out && go tool cover -html=cover.out

coveralls:
# running on features directory
go list ./... | grep service | xargs -n1 go test -cover
26 changes: 15 additions & 11 deletions swagger/apiListAdmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

| Method | Url | Description |
| ------------------------------------------------------------------- | ------------------------------ | ------------------------------------ |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/dashboard` | View All Dashboard |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/dashboard/monthly` | View All Dashboard |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/dashboard/years` | View All Dashboard |


### Dashboard Report Download

Expand All @@ -37,15 +39,15 @@
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/dashboard/download` | View All Report Download |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/dashboard/download/:file` | Get Report Download |

## Manage Reward
## Manage Voucher

| Method | Url | Description |
| ------------------------------------------------------------------- | ------------------------------ | ------------------------------------ |
| ![](https://storage.kodeteks.com/POST.png) | `/admins/manage/rewards` | Add Reward |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/rewards` | View All Reward |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/rewards/:id` | View Detail Reward |
| ![](https://storage.kodeteks.com/PUT.png) | `/admins/manage/rewards/:id` | Update Reward By Id |
| ![](https://storage.kodeteks.com/DELETE.png) | `/admins/manage/rewards/:id` | Delete Reward By Id |
| ![](https://storage.kodeteks.com/POST.png) | `/admins/manage/vouchers` | Add Voucher |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/vouchers` | View All Voucher |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/vouchers/:id` | View Detail Voucher |
| ![](https://storage.kodeteks.com/PUT.png) | `/admins/manage/vouchers/:id` | Update Voucher By Id |
| ![](https://storage.kodeteks.com/DELETE.png) | `/admins/manage/vouchers/:id` | Delete Voucher By Id |

## Manage Report

Expand Down Expand Up @@ -88,7 +90,7 @@
| ------------------------------------------------------------------- | ---------------------------------------- | ----------- | ----------------------- |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/missions/approval` | `status` | View All Contents |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/missions/approval/:id` | | View Detail Content |
| ![](https://storage.kodeteks.com/PATCH.png) | `/admins/manage/missions/approval/:id` | | Update Content By Id |
| ![](https://storage.kodeteks.com/PUT.png) | `/admins/manage/missions/approval/:id` | | Update Content By Id |

## Manage Prompt

Expand All @@ -106,6 +108,7 @@
| ------------------------------------------------------------------- | ---------------------------------- | ----------------- | ------------------------------ |
| ![](https://storage.kodeteks.com/POST.png) | `/admins/manage/drop-points` | | Add Drop Point |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/drop-points` | `name` `address` | View All Drop Points |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/drop-points/:id` | | View detail Drop Points |
| ![](https://storage.kodeteks.com/PUT.png) | `/admins/manage/drop-points/:id` | | Update Drop Point By Id |
| ![](https://storage.kodeteks.com/DELETE.png) | `/admins/manage/drop-points/:id` | | Delete Drop Point By Id |

Expand All @@ -124,16 +127,17 @@
| ------------------------------------------------------------------- | ---------------------------------- | ---------------------- |
| ![](https://storage.kodeteks.com/POST.png) | `/admins/manage/trashes` | Add Trash |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/trashes` | View All Trash |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/trashes/:id` | View detail Trash |
| ![](https://storage.kodeteks.com/PUT.png) | `/admins/manage/trashes/:id` | Update Trash By Id |
| ![](https://storage.kodeteks.com/DELETE.png) | `/admins/manage/trashes/:id` | Delete Trash By Id |

## Manage Exchange Point

| Method | Url | Query Param | Description |
| ------------------------------------------------------------------- | -------------------------------------- | ----------- | ------------------------------------ |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/exchange-points` | `status` | View All Exchange Point & filter |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/exchange-points/:id` | | View Detail Exchange Point |
| ![](https://storage.kodeteks.com/PATCH.png) | `/admins/manage/exchange-points/:id` | | Update Exchange Point By Id |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/exchange-point` | `status` | View All Exchange Point & filter |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/admins/manage/exchange-point/:id` | | View Detail Exchange Point |
| ![](https://storage.kodeteks.com/PATCH.png) | `/admins/manage/exchange-point/:id` | | Update Exchange Point By Id |

## Manage Community

Expand Down
8 changes: 3 additions & 5 deletions swagger/apiListUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
## Home & Info

| Method | Url | Description |
| ---------------------------------------------------------------- | ------------------------ | -------------------------------------------------- |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/home` | View All Data (point,article popular,mission event and achivement)|
| ---------------------------------------------------------------- | ------------------------ | --------------------------------------------------
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/faq` | View All FAQ |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/faq/:id` | View Detail FAQ |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/achievements` | View All Achievement |
| ![](https://storage.kodeteks.com/POST.png) | `/recybot` | Chatbot RecyThing |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/notifications` | View User Notifications |


## User Profile

Expand All @@ -31,10 +30,9 @@

| Method | Url | Description |
| ---------------------------------------------------------------- | ------------------------------- | -------------------------------------- |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/users/point` | View User Point |
| ![](https://storage.kodeteks.com/POST.png) | `/users/point/daily` | Claim Daily Point |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/users/point/history` | View All History Point (tukar point, claim point, mission point) |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/users/point/history/:id` | View Detail History Point |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/users/point/history/:idTransaction` | View Detail History Point |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/vouchers` | View All Voucher |
| ![](https://pub-cc8247a7807d42d1bd2453b3dae2f678.r2.dev/GET.png) | `/vouchers/:id` | View Detail Voucher |
| ![](https://storage.kodeteks.com/POST.png) | `/vouchers/:id` | Confirm Exchange Point With Email |
Expand Down

0 comments on commit 02a740c

Please sign in to comment.