Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "request": {
- "assets": [
- {
- "name": "id",
- "description": "id",
- "label": "id",
- "type": "string",
- "value": "id"
- },
- {
- "name": "emailA",
- "description": "emailA",
- "label": "emailA",
- "type": "string",
- "value": "emailA"
- },
- {
- "name": "emailB",
- "description": "emailB",
- "label": "emailB",
- "type": "string",
- "value": "emailB"
- },
- {
- "name": "create_at",
- "description": "create_at",
- "label": "create_at",
- "type": "string",
- "value": "create_at"
- },
- {
- "name": "update_at",
- "description": "update_at",
- "label": "update_at",
- "type": "string",
- "value": "update_at"
- },
- {
- "name": "listsign",
- "description": "listsign",
- "label": "listsign",
- "type": "string",
- "value": "listsign"
- },
- {
- "name": "contractDetails",
- "description": "contractDetails",
- "label": "contractDetails",
- "type": "string",
- "value": "contractDetails"
- },
- {
- "name": "field_2",
- "description": "field_2",
- "label": "field_2",
- "type": "object",
- "value": "field_2",
- "child": [
- {
- "name": "field_3",
- "description": "field_3",
- "type": "string"
- },
- {
- "name": "field_7",
- "description": "field_7",
- "type": "string"
- },
- {
- "name": "field_6",
- "description": "field_6",
- "type": "string"
- },
- {
- "name": "field_5",
- "description": "field_5",
- "type": "string"
- },
- {
- "name": "field_4",
- "description": "field_4",
- "type": "string"
- }
- ]
- },
- {
- "name": "field_1",
- "description": "field_1",
- "label": "field_1",
- "type": "string",
- "value": "field_1"
- }
- ],
- "img_url": "",
- "methods": [
- {
- "roles": [
- "KH"
- ],
- "name": "taomoi",
- "params": [
- "id",
- "emailA",
- "emailB",
- "create_at",
- "update_at",
- "listsign",
- "contractDetails",
- "field_3",
- "field_7",
- "field_6",
- "field_5",
- "field_4",
- "field_2",
- "field_1"
- ],
- "type": "CREATE"
- },
- {
- "roles": [
- "KH"
- ],
- "name": "123",
- "params": [
- "emailB"
- ],
- "type": "GET"
- }
- ],
- "roles": [
- "KH",
- "NVKD",
- "TKKD",
- "GDS",
- "KT",
- "123",
- "123",
- "123"
- ],
- "name": "testApp",
- "description": "",
- "uuid": [
- "id",
- "field_1",
- "field_2"
- ]
- },
- "img_url": "https://image.winudf.com/v2/image/bWFya2FwcHMubWFya2FwcHMxX3NjcmVlbl8wXzE1MjQwMjU3MDRfMDk1/screen-0.jpg?h=355&fakeurl=1&type=.jpg",
- "response": {
- "basePath": "/",
- "paths": {
- "/testApp/123": {
- "get": {
- "summary": "123",
- "produces": [
- "application/json"
- ],
- "description": "123",
- "operationId": "123",
- "responses": {
- "201": {
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "emailB": {
- "type": "string"
- },
- "emailA": {
- "type": "string"
- },
- "field_1": {
- "type": "string"
- },
- "field_2": {
- "type": "object",
- "properties": {
- "field_3": {
- "type": "string"
- },
- "field_4": {
- "type": "string"
- },
- "field_7": {
- "type": "string"
- },
- "field_5": {
- "type": "string"
- },
- "field_6": {
- "type": "string"
- },
- "timestamp": {
- "type": "integer"
- }
- }
- },
- "update_at": {
- "type": "string"
- },
- "listsign": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "create_at": {
- "type": "string"
- },
- "contractDetails": {
- "type": "string"
- }
- }
- }
- },
- "description": "Info"
- },
- "400": {
- "description": "invalid input, object invalid"
- },
- "409": {
- "description": "not exist"
- }
- },
- "parameters": [
- {
- "schema": {
- "type": "object",
- "required": [
- "emailB"
- ],
- "properties": {
- "emailB": {
- "type": "string"
- }
- }
- },
- "in": "body",
- "name": "product",
- "description": "product"
- },
- {
- "in": "header",
- "name": "authorization",
- "type": "string"
- }
- ],
- "consumes": [
- "application/json"
- ],
- "tags": [
- "KH"
- ]
- }
- },
- "/testApp/taomoi": {
- "post": {
- "summary": "taomoi",
- "produces": [
- "application/json"
- ],
- "description": "taomoi",
- "operationId": "taomoi",
- "responses": {
- "201": {
- "schema": {
- "type": "object",
- "properties": {
- "field_1": {
- "type": "string"
- },
- "field_2": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- }
- },
- "description": "created"
- },
- "400": {
- "description": "invalid input, object invalid"
- },
- "409": {
- "description": "not exist"
- }
- },
- "parameters": [
- {
- "schema": {
- "type": "object",
- "required": [
- "id",
- "emailA",
- "emailB",
- "create_at",
- "update_at",
- "listsign",
- "contractDetails",
- "field_3",
- "field_7",
- "field_6",
- "field_5",
- "field_4",
- "field_2",
- "field_1"
- ],
- "properties": {
- "emailB": {
- "type": "string"
- },
- "emailA": {
- "type": "string"
- },
- "field_3": {
- "type": "string"
- },
- "field_4": {
- "type": "string"
- },
- "update_at": {
- "type": "string"
- },
- "listsign": {
- "type": "string"
- },
- "field_7": {
- "type": "string"
- },
- "field_5": {
- "type": "string"
- },
- "field_6": {
- "type": "string"
- },
- "create_at": {
- "type": "string"
- },
- "contractDetails": {
- "type": "string"
- }
- }
- },
- "in": "body",
- "name": "product",
- "description": "product"
- },
- {
- "in": "header",
- "name": "authorization",
- "type": "string"
- }
- ],
- "consumes": [
- "application/json"
- ],
- "tags": [
- "KH"
- ]
- }
- },
- "/user": {
- "post": {
- "summary": "createUser",
- "produces": [
- "application/json"
- ],
- "description": "createUser",
- "operationId": "createUser",
- "responses": {
- "201": {
- "description": "created"
- },
- "400": {
- "description": "username exist"
- }
- },
- "parameters": [
- {
- "schema": {
- "type": "object",
- "required": [
- "username",
- "password",
- "role"
- ],
- "properties": {
- "password": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "username": {
- "type": "string"
- }
- }
- },
- "in": "body",
- "name": "user",
- "description": "Roles : KH NVKD TKKD GDS KT 123 123 123 ",
- "required": true
- }
- ],
- "consumes": [
- "application/json"
- ],
- "tags": [
- "default"
- ]
- }
- },
- "/authentication": {
- "post": {
- "summary": "authentication",
- "produces": [
- "application/json"
- ],
- "description": "authentication",
- "operationId": "authentication",
- "responses": {
- "200": {
- "schema": {
- "type": "object",
- "properties": {
- "authorization": {
- "type": "string",
- "enum": [
- "eyJleHAiOjE1NjExMDQyMDIsImFsZyI6IkhTNTEyIiwiaWF0IjoxNTYxMTAwNjAyfQ.eyJwdWJsaWNfa2V5IjoiMDM3YTRhZTliZWYwMDhkZGY3YjUwODE0N2ZlNjc0OTFhYmMzZWEyNzkyZmYxMjY0MDgwODAwZTJmODg2Nzc2MGJlIn0.LreIkJoa6Ha1sZXTBN8i_smrDPmCRMu0cGzXjs9qH2Aj9IkHh9iXNj-pT-nYW8f_SNYdkpHR1lxMqpVasvNhqA",
- "Incorrect username or password",
- "Missing required fields"
- ]
- },
- "status": {
- "type": "string",
- "enum": [
- "Success",
- "Failure"
- ]
- },
- "statusCode": {
- "type": "number",
- "enum": [
- 0,
- 1
- ]
- }
- }
- },
- "description": "login success"
- }
- },
- "parameters": [
- {
- "schema": {
- "type": "object",
- "required": [
- "username",
- "password"
- ],
- "properties": {
- "password": {
- "type": "string"
- },
- "username": {
- "type": "string"
- }
- }
- },
- "in": "body",
- "name": "default",
- "description": "default",
- "required": true
- }
- ],
- "consumes": [
- "application/json"
- ],
- "tags": [
- "default"
- ]
- }
- }
- },
- "host": "178.128.217.110:8000",
- "schemes": [
- "http"
- ],
- "swagger": "2.0",
- "info": {
- "license": {
- "name": "Apache 2.0",
- "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
- },
- "contact": {
- "email": "hust.blockchain@gmail.com"
- },
- "description": "testApp API",
- "title": "testApp API",
- "version": "1.0.0"
- },
- "tags": [
- {
- "name": "KH",
- "description": "KH"
- },
- {
- "name": "NVKD",
- "description": "NVKD"
- },
- {
- "name": "TKKD",
- "description": "TKKD"
- },
- {
- "name": "GDS",
- "description": "GDS"
- },
- {
- "name": "KT",
- "description": "KT"
- },
- {
- "name": "123",
- "description": "123"
- },
- {
- "name": "123",
- "description": "123"
- },
- {
- "name": "123",
- "description": "123"
- }
- ]
- },
- "name": "testApp",
- "description": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement