{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "API Documentation Siketan", "description": "API Documentation Siketan" }, "host": "localhost:3000", "basePath": "/", "tags": [ { "name": "Auth", "description": "Authentication endpoints" } ], "schemes": [ "http" ], "securityDefinitions": {}, "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/kecamatan": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/desa": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "kecamatan", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/add": { "post": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-penjual/{id}": { "post": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "profesiPenjual": { "example": "any" }, "namaProducts": { "example": "any" }, "stok": { "example": "any" }, "satuan": { "example": "any" }, "harga": { "example": "any" }, "deskripsi": { "example": "any" }, "status": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/product-penyuluh": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/product-petani": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/product-petani-no-auth": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/product-petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/list-product/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/list-toko": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/list-product/{name}": { "get": { "description": "", "parameters": [ { "name": "name", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/meta/product-petani": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "question": { "example": "any" }, "answer": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "key", "in": "query", "type": "string" }, { "name": "hide", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/list/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "petaniId", "in": "query", "type": "string" }, { "name": "isExport", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/statistik/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "sortBy", "in": "query", "type": "string" }, { "name": "sortType", "in": "query", "type": "string" }, { "name": "poktan_id", "in": "query", "type": "string" }, { "name": "isExport", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" }, { "name": "kategori", "in": "query", "type": "string" }, { "name": "komoditas", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "kategori": { "example": "any" }, "komoditas": { "example": "any" }, "periodeTanam": { "example": "any" }, "luasLahan": { "example": "any" }, "prakiraanLuasPanen": { "example": "any" }, "prakiraanHasilPanen": { "example": "any" }, "prakiraanBulanPanen": { "example": "any" }, "fk_kelompokId": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "jenis", "in": "query", "type": "string" }, { "name": "musim", "in": "query", "type": "string" }, { "name": "tipe", "in": "query", "type": "string" }, { "name": "startDate", "in": "query", "type": "string" }, { "name": "endDate", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/petani/{id}/all": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/all": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "gapoktan": { "example": "any" }, "namaKelompok": { "example": "any" }, "desa": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "desaId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "question": { "example": "any" }, "answer": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/upload": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/fix/category": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "category", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/fix/commodity": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "wrongKomoditas", "in": "query", "type": "string" }, { "name": "correctKomoditas", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "debug", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok-tani/desa/{desa}": { "get": { "description": "", "parameters": [ { "name": "desa", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok-tani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/select-tani/{kecamatan}": { "get": { "description": "", "parameters": [ { "name": "kecamatan", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/roles": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" }, { "name": "includePermissions", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "display_name": { "example": "any" }, "description": { "example": "any" }, "permissions": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/roles/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "display_name": { "example": "any" }, "description": { "example": "any" }, "permissions": { "example": "any" }, "is_active": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/permissions": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "module", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "display_name": { "example": "any" }, "description": { "example": "any" }, "module": { "example": "any" }, "action": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/permissions/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "display_name": { "example": "any" }, "description": { "example": "any" }, "is_active": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/users/assign-role": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "userId": { "example": "any" }, "roleId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/users/{userId}/permissions": { "get": { "description": "", "parameters": [ { "name": "userId", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/users/{userId}/check-permission": { "post": { "description": "", "parameters": [ { "name": "userId", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "permission": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/statistics": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/my-permissions": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/my-permissions/check": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "permission": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/log-activity": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" }, { "name": "sortBy", "in": "query", "type": "string" }, { "name": "sortType", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "responses": { "default": { "description": "" } } } }, "/trash-activity": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/trash-activity/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/trash-activity-restore/{id}": { "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/chat/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "dari": { "example": "any" }, "tujuan": { "example": "any" }, "aksi": { "example": "any" }, "status": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/rating/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" }, "response": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/chats": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/rating": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-tanam": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "tanamanPetaniId": { "example": "any" }, "tanggalLaporan": { "example": "any" }, "komdisiTanaman": { "example": "any" }, "deskripsi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-tanam/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "tanggalLaporan": { "example": "any" }, "komdisiTanaman": { "example": "any" }, "deskripsi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-tanam/detail/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-akhir": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "tanamanPetaniId": { "example": "any" }, "tanggalLaporan": { "example": "any" }, "komdisiTanaman": { "example": "any" }, "deskripsi": { "example": "any" }, "realisasiHasilPanen": { "example": "any" }, "realisasiLuasLahan": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/meta": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/fix/kecamatan": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongKecamatan", "in": "query", "type": "string" }, { "name": "correctKecamatan", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/fix/desa": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongDesa", "in": "query", "type": "string" }, { "name": "correctDesa", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "kecamatanId", "in": "query", "type": "string" }, { "name": "updateEmpty", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/info-tani/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "judul": { "example": "any" }, "tanggal": { "example": "any" }, "status": { "example": "any" }, "kategori": { "example": "any" }, "isi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/info-tani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "judul": { "example": "any" }, "status": { "example": "any" }, "kategori": { "example": "any" }, "isi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/info-tani": { "get": { "description": "", "parameters": [ { "name": "category", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/event-tani/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "namaKegiatan": { "example": "any" }, "tanggalAcara": { "example": "any" }, "waktuAcara": { "example": "any" }, "tempat": { "example": "any" }, "peserta": { "example": "any" }, "isi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/event-tani": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/event-tani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "namaKegiatan": { "example": "any" }, "tanggalAcara": { "example": "any" }, "waktuAcara": { "example": "any" }, "tempat": { "example": "any" }, "peserta": { "example": "any" }, "createdBy": { "example": "any" }, "isi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/api-docs": { "get": { "description": "", "responses": { "default": { "description": "" } } } }, "/cek-nik": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/cek-nip": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/search": { "get": { "description": "", "parameters": [ { "name": "q", "in": "query", "type": "string" }, { "name": "type", "in": "query", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "sortBy", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/login": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/register": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "no_wa": { "example": "any" }, "nama": { "example": "any" }, "password": { "example": "any" }, "pekerjaan": { "example": "any" }, "peran": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/register-penyuluh": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" }, "email": { "example": "any" }, "NoWa": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "selectedKelompokIds": { "example": "any" }, "pekerjaan": { "example": "any" }, "tipe": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/petani-login": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/set-petani-password": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "password": { "example": "any" }, "confirmPassword": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/petani-register": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "NKK": { "example": "any" }, "nama": { "example": "any" }, "email": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "NoWa": { "example": "any" }, "gapoktan": { "example": "any" }, "penyuluh": { "example": "any" }, "namaKelompok": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/auth/populate-penyuluh": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/populate-poktan": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/profile": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/auth/detailprofile": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/auth/updateprofile": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "email": { "example": "any" }, "whatsapp": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "passwordBaru": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "where": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/auth/verify": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/auth/peran/meta": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/auth/peran": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/auth/peran/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "id": { "example": "any" }, "roles": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/auth/fix/kecamatan": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongKecamatan", "in": "query", "type": "string" }, { "name": "correctKecamatan", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/auth/fix/desa": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongDesa", "in": "query", "type": "string" }, { "name": "correctDesa", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "kecamatanId", "in": "query", "type": "string" }, { "name": "updateEmpty", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/statistik/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "kategori": { "example": "any" }, "komoditas": { "example": "any" }, "periodeTanam": { "example": "any" }, "luasLahan": { "example": "any" }, "prakiraanLuasPanen": { "example": "any" }, "prakiraanHasilPanen": { "example": "any" }, "prakiraanBulanPanen": { "example": "any" }, "fk_kelompokId": { "example": "any" }, "realisasiLuasPanen": { "example": "any" }, "realisasiHasilPanen": { "example": "any" }, "realisasiBulanPanen": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/statistik/upload": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/statistik/fix/category": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "category", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/statistik/fix/commodity": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "wrongKomoditas", "in": "query", "type": "string" }, { "name": "correctKomoditas", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "debug", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/landing-statistik/": { "get": { "description": "", "parameters": [ { "name": "tahun", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/meta": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/kecamatan": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/desa": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "kecamatan", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "gapoktan": { "example": "any" }, "namaKelompok": { "example": "any" }, "desa": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "desaId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/fix/kecamatan": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongKecamatan", "in": "query", "type": "string" }, { "name": "correctKecamatan", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/fix/desa": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongDesa", "in": "query", "type": "string" }, { "name": "correctDesa", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "kecamatanId", "in": "query", "type": "string" }, { "name": "updateEmpty", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok/upload": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/list/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "petaniId", "in": "query", "type": "string" }, { "name": "isExport", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/statistik/": { "get": { "description": "", "parameters": [ { "name": "month", "in": "query", "type": "string" }, { "name": "year", "in": "query", "type": "string" }, { "name": "lineType", "in": "query", "type": "string" }, { "name": "pieType", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "jenis", "in": "query", "type": "string" }, { "name": "musim", "in": "query", "type": "string" }, { "name": "tipe", "in": "query", "type": "string" }, { "name": "startDate", "in": "query", "type": "string" }, { "name": "endDate", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/petani/{id}/all": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/penyuluh/all": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/footer/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "key", "in": "query", "type": "string" }, { "name": "category", "in": "query", "type": "string" }, { "name": "desc", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "key": { "example": "any" }, "value": { "example": "any" }, "category": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "key", "in": "query", "type": "string" }, { "name": "hide", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/faq/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "question": { "example": "any" }, "answer": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/faq/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "question": { "example": "any" }, "answer": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/dashboard/": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-tani": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "verified", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-tani/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "nokk": { "example": "any" }, "NoWa": { "example": "any" }, "email": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "gapoktan": { "example": "any" }, "penyuluh": { "example": "any" }, "namaKelompok": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-tani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "nokk": { "example": "any" }, "email": { "example": "any" }, "NoWa": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "namaKelompok": { "example": "any" }, "penyuluh": { "example": "any" }, "gapoktan": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-tani/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "tanggalLaporan": { "example": "any" }, "komdisiTanaman": { "example": "any" }, "deskripsi": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-petani": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/laporan-penyuluh": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "where": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/detail/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/tanaman-petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "statusLahan": { "example": "any" }, "luasLahan": { "example": "any" }, "kategori": { "example": "any" }, "jenis": { "example": "any" }, "jenisPanen": { "example": "any" }, "komoditas": { "example": "any" }, "musimTanam": { "example": "any" }, "tanggalTanam": { "example": "any" }, "perkiraanPanen": { "example": "any" }, "perkiraanHasilPanen": { "example": "any" }, "realisasiHasilPanen": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/upload-data-petani": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/list-tanaman": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "petaniId", "in": "query", "type": "string" }, { "name": "isExport", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "statusKepemilikanLahan": { "example": "any" }, "luasLahan": { "example": "any" }, "kategori": { "example": "any" }, "jenis": { "example": "any" }, "komoditas": { "example": "any" }, "periodeMusimTanam": { "example": "any" }, "periodeBulanTanam": { "example": "any" }, "prakiraanLuasPanen": { "example": "any" }, "prakiraanProduksiPanen": { "example": "any" }, "prakiraanBulanPanen": { "example": "any" }, "fk_petaniId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/list-tanaman/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "statusKepemilikanLahan": { "example": "any" }, "luasLahan": { "example": "any" }, "kategori": { "example": "any" }, "jenis": { "example": "any" }, "komoditas": { "example": "any" }, "periodeMusimTanam": { "example": "any" }, "periodeBulanTanam": { "example": "any" }, "prakiraanLuasPanen": { "example": "any" }, "prakiraanProduksiPanen": { "example": "any" }, "prakiraanBulanPanen": { "example": "any" }, "fk_petaniId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/upload-tanaman": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/presensi-kehadiran/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" }, "tanggalPresensi": { "example": "any" }, "judulKegiatan": { "example": "any" }, "deskripsiKegiatan": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/jurnal-kegiatan/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "judul": { "example": "any" }, "tanggalDibuat": { "example": "any" }, "uraian": { "example": "any" }, "statusJurnal": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/presensi-kehadiran": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/presensi-kehadiran/web": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/jurnal-kegiatan": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/jurnal-kegiatan/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "judul": { "example": "any" }, "tanggalDibuat": { "example": "any" }, "uraian": { "example": "any" }, "statusJurnal": { "example": "any" }, "NIK": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/riwayat-chat": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" }, "email": { "example": "any" }, "NoWa": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "selectedKelompokIds": { "example": "any" }, "pekerjaan": { "example": "any" }, "tipe": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-penyuluh": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-penyuluh/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "email": { "example": "any" }, "NoWa": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "selectedKelompokIds": { "example": "any" }, "pekerjaan": { "example": "any" }, "tipe": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/upload-data-penyuluh": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/opsi-penyuluh": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/kelompok-all": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/fix/kecamatan": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongKecamatan", "in": "query", "type": "string" }, { "name": "correctKecamatan", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/fix/desa": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "debug", "in": "query", "type": "string" }, { "name": "wrongDesa", "in": "query", "type": "string" }, { "name": "correctDesa", "in": "query", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "kecamatanId", "in": "query", "type": "string" }, { "name": "updateEmpty", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/fix/wilayahBinaan": { "put": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "getWrong", "in": "query", "type": "string" }, { "name": "type", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/penyuluh/wilayah-binaan": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "type": { "example": "any" }, "penyuluhId": { "example": "any" }, "wilayahId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "type": { "example": "any" }, "penyuluhId": { "example": "any" }, "wilayahId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/users": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/search/poktan": { "get": { "description": "", "parameters": [ { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/search/petani": { "get": { "description": "", "parameters": [ { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/verify": { "get": { "description": "", "parameters": [ { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/verify/meta": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/verify/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/delete-user/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/chart": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "label": { "example": "any" }, "total": { "example": "any" }, "tanggalPanen": { "example": "any" }, "jenis": { "example": "any" }, "jenisPanen": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "get": { "description": "", "parameters": [ { "name": "jenisPanen", "in": "query", "type": "string" }, { "name": "jenis", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/chat/messages/penyuluh": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "desa", "in": "query", "type": "string" }, { "name": "userId", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/chat/petani/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/chat/msesages/petani": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "userId", "in": "query", "type": "string" }, { "name": "partnerId", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-operator": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-operator/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "nkk": { "example": "any" }, "nama": { "example": "any" }, "peran": { "example": "any" }, "email": { "example": "any" }, "notelp": { "example": "any" }, "alamat": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/daftar-operator/add": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "nkk": { "example": "any" }, "nama": { "example": "any" }, "peran": { "example": "any" }, "email": { "example": "any" }, "notelp": { "example": "any" }, "alamat": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/upload-data-operator": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/wilayah/kecamatan": { "get": { "description": "", "parameters": [ { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/wilayah/desa": { "get": { "description": "", "parameters": [ { "name": "kecamatanId", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/wilayah/add": { "post": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/roles": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" }, { "name": "includePermissions", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "display_name": { "example": "any" }, "description": { "example": "any" }, "permissions": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/roles/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "display_name": { "example": "any" }, "description": { "example": "any" }, "permissions": { "example": "any" }, "is_active": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/permissions": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "module", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "name": { "example": "any" }, "display_name": { "example": "any" }, "description": { "example": "any" }, "module": { "example": "any" }, "action": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/permissions/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "display_name": { "example": "any" }, "description": { "example": "any" }, "is_active": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/users/assign-role": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "userId": { "example": "any" }, "roleId": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/users/{userId}/permissions": { "get": { "description": "", "parameters": [ { "name": "userId", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/users/{userId}/check-permission": { "post": { "description": "", "parameters": [ { "name": "userId", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "permission": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/statistics": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/my-permissions": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/rbac/my-permissions/check": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "permission": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/login": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/register": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "email": { "example": "any" }, "no_wa": { "example": "any" }, "nama": { "example": "any" }, "password": { "example": "any" }, "pekerjaan": { "example": "any" }, "peran": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/register-penyuluh": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIP": { "example": "any" }, "email": { "example": "any" }, "NoWa": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "selectedKelompokIds": { "example": "any" }, "pekerjaan": { "example": "any" }, "tipe": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/petani-login": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/set-petani-password": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "password": { "example": "any" }, "confirmPassword": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/petani-register": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NIK": { "example": "any" }, "NKK": { "example": "any" }, "nama": { "example": "any" }, "email": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "NoWa": { "example": "any" }, "gapoktan": { "example": "any" }, "penyuluh": { "example": "any" }, "namaKelompok": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/populate-penyuluh": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/populate-poktan": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/profile": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/detailprofile": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/updateprofile": { "post": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nik": { "example": "any" }, "email": { "example": "any" }, "whatsapp": { "example": "any" }, "alamat": { "example": "any" }, "desa": { "example": "any" }, "desaId": { "example": "any" }, "nama": { "example": "any" }, "kecamatan": { "example": "any" }, "kecamatanId": { "example": "any" }, "password": { "example": "any" }, "passwordBaru": { "example": "any" }, "namaProduct": { "example": "any" }, "kecamatanBinaan": { "example": "any" }, "desaBinaan": { "example": "any" }, "where": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/peran/meta": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/peran": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" }, { "name": "page", "in": "query", "type": "string" }, { "name": "limit", "in": "query", "type": "string" }, { "name": "search", "in": "query", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/peran/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "authorization", "in": "header", "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "id": { "example": "any" }, "roles": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } } } }