{ "swagger": "2.0", "info": { "description": "SIPD Service Transaksi Master Data Rest API.", "title": "SIPD Service Transaksi Master Data", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "API Support", "email": "lifelinejar@mail.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "paths": { "/welcome": { "get": { "description": "get welcome", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Welcome" ], "summary": "get welcome", "parameters": [ { "type": "integer", "description": "Halaman yang ditampilkan", "name": "page", "in": "query" }, { "type": "integer", "description": "Jumlah data per halaman, maksimal 50 data", "name": "limit", "in": "query" }, { "type": "string", "description": "Key value pencarian ([kode_ddn,nama_daerah,jns_pemda]). Contoh: kode_ddn.11 -\u003e (akan menampilkan data dengan kode ddn = '11')", "name": "filter", "in": "query" } ], "responses": { "200": { "description": "Success", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.WelcomeModel" } } }, "400": { "description": "Bad request", "schema": { "$ref": "#/definitions/utils.RequestError" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/utils.RequestError" } }, "404": { "description": "Not found", "schema": { "$ref": "#/definitions/utils.RequestError" } }, "422": { "description": "Data validation failed", "schema": { "type": "array", "items": { "$ref": "#/definitions/utils.RequestError" } } }, "500": { "description": "Server error", "schema": { "$ref": "#/definitions/utils.RequestError" } } } } } }, "definitions": { "models.WelcomeModel": { "type": "object", "properties": { "id_daerah": { "type": "integer", "example": 1 } } }, "utils.DataValidationError": { "type": "object", "properties": { "field": { "type": "string", "example": "email" }, "message": { "type": "string", "example": "Invalid email address" } } }, "utils.RequestError": { "type": "object", "properties": { "code": { "type": "integer", "example": 422 }, "fields": { "type": "array", "items": { "$ref": "#/definitions/utils.DataValidationError" } }, "message": { "type": "string", "example": "Invalid email address" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }