{
	"openapi": "3.0.0",
	"info": 
	{
		"title": "Register of Securities Staff of AIs (eRegister)",
		"description": "For more details, refer the link: https://apidocs.hkma.gov.hk/documentation/bank-svf-info/register-ais-secstaff",
		"version": "v1"
	},
	"servers": 
	[
		{
			"url": "https://api.hkma.gov.hk/public/bank-svf-info",
			"variables": {}
		}
	],
	"paths": 
	{
		"/register-ais-secstaff": 
		{
			"get": {
				"summary": "Retrieve data of Register of Securities Staff of AIs (eRegister)",
				"parameters": 
				[
					{
						"name": "lang",
						"in": "query",
						"description": "",
						"required": true,
						"style": "form",
						"explode": true,
						"schema": {
							"$ref": "#/components/schemas/Lang"
						}
					},
					{
						"name": "searchtype",
						"in": "query",
						"description": "",
						"required": true,
						"style": "form",
						"explode": true,
						"schema": {
							"$ref": "#/components/schemas/Searchtype"
						}
					},
					{
						"name": "surname",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"name": "forename",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"name": "chinesename",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"name": "is_curr_rel_indiv",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"$ref": "#/components/schemas/Is_curr_rel_indiv"
						}
					},
					{
						"name": "reg_code",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "string"
						}
					},		  
					{
						"name": "pagesize",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
						"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "offset",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "fields",
						"in": "query",
						"description": "",
						"style": "form",
						"explode": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"responses": 
				{
					"200": {
						"description": "Expected response to a valid request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Response"
								}
							}
						}
					},
					"500": {
						"description": "Unexcpeted error",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								}
							}
						}
					}
				}
			}
		}
	},
	"components": 
	{
		"schemas": 
		{
			"Header": 
			{
				"title": "Header",
				"type": "object",
				"properties": 
				{
					"success": {
					"type": "boolean"
					},
					"err_code": {
					"type": "string"
					},
					"err_msg": {
					"type": "string"
					}
				}
			},
			"Response": 
			{
				"title": "response",
				"type": "object",
				"properties": {
					"header": {
						"$ref": "#/components/schemas/Header"
					},
					"result": {
						"$ref": "#/components/schemas/Result"
					}
				}
			},
			"Result": 
			{
				"title": "Result",
				"type": "object",
				"properties": {
					"datasize": {
						"type": "integer",
						"format": "int32"
					},
					"records": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Record"
						},
					"description": ""
					}
				}
			},
			"Record": 
			{
				"title": "Record",
				"type": "object",
				"properties": {
					"name": {"type": "string"},
					"name_tc": {"type": "string"},
					"reg_code": {"type": "string"},
					"current_registration": 
					{
						"title": "current_registration",
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Current_registration"
						}
					},
					"business_address": 
					{
						"title": "business_address",
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Business_address"
						}
					},
					"conditions": 
					{
						"title": "conditions",
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Conditions"
						}
					},
					"registration_history": 
					{
						"title": "registration_history",
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Registration_history"
						}
					},
					"public_disciplinary_action": 
					{
						"title": "public_disciplinary_action",
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Public_disciplinary_action"
						}
					}
				}
			},
			"Lang": 
			{
				"title": "lang",
				"enum": [
					"en",
					"tc"
				],
				"type": "string",
				"example": "en",
				"x-enum-elements": 
				[
					{
						"name": "en",
						"description": ""
					},
					{
						"name": "tc",
						"description": ""
					}
				]
			},
			"Searchtype": 
			{
				"title": "searchtype",
				"enum": [
					"engName",
					"chiName",
					"regNo"
				],
				"type": "string",
				"example": "engName",
				"x-enum-elements": 
				[
					{
						"name": "engName",
						"description": ""
					},
					{
						"name": "chiName",
						"description": ""
					},
					{
						"name": "regNo",
						"description": ""
					}		  
				]
			},
			"Is_curr_rel_indiv": 
			{
				"title": "is_curr_rel_indiv",
				"enum": [
					"0",
					"1"
				],
				"type": "string",
				"example": "0",
				"x-enum-elements": 
				[
					{
						"name": "0",
						"description": ""
					},
					{
						"name": "1",
						"description": ""
					}
				]
			},	  
			"ErrorResponse": 
			{
				"title": "errorResponse",
				"type": "object",
				"properties": {
					"header": {
						"$ref": "#/components/schemas/Header"
					}
				}
			},
			"Current_registration": 
			{
				"title": "Current_registration",
				"type": "object",
				"properties": {
					"reg_inst_name": {"type": "string"},
					"reg_act": {"type": "string"},
					"eng_first_date": {"type": "string"},
					"is_eo": {"type": "string"},
					"capacity": {"type": "string"},
					"remarks": {"type": "string"}
				}
			},
			"Business_address": 
			{
				"title": "Business_address",
				"type": "object",
				"properties": {
					"reg_inst_name": {"type": "string"},
					"sfc_ce_num": {"type": "string"},
					"business_address": {"type": "string"}
				}
			},
			"Conditions": 
			{
				"title": "Conditions",
				"type": "object",
				"properties": {
					"reg_inst_name": {"type": "string"},
					"effective_date": {"type": "string"},
					"description": {"type": "string"}
				}
			},
			"Registration_history": 
			{
				"title": "Registration_history",
				"type": "object",
				"properties": {
					"reg_code": {"type": "string"},
					"reg_inst_name": {"type": "string"},
					"reg_act": {"type": "string"},
					"effective_period": {"type": "string"},
					"is_eo": {"type": "string"}
				}
			},
			"Public_disciplinary_action": 
			{
				"title": "Public_disciplinary_action",
				"type": "object",
				"properties": {
					"rec_pub_dis_act_by_sfc": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/Rec_pub_dis_act_by_sfc"
						}
					},
					"rec_pub_dis_act_by_hkma": {
						"type": "array",
						"items": {					
						"$ref": "#/components/schemas/Rec_pub_dis_act_by_hkma"
						}
					}
				}
			},
			"Rec_pub_dis_act_by_sfc": 
			{
				"title": "Rec_pub_dis_act_by_sfc",
				"type": "object",
				"properties": {
					"action_date": {"type": "string"},
					"action_taken": {"type": "string"},
					"pr_en": {"type": "string"},
					"pr_tc": {"type": "string"}
				}
			},
			"Rec_pub_dis_act_by_hkma": 
			{
				"title": "Rec_pub_dis_act_by_hkma",
				"type": "object",
				"properties": {
					"action_date": {"type": "string"},
					"action_taken": {"type": "string"},
					"pr_en": {"type": "string"},
					"pr_tc": {"type": "string"}
				}
			}
		}
	}
}