{ "openapi": "3.0.0", "info": { "title": "Legalization API", "version": "1.0.0" }, "paths": { "/api/account": { "get": { "tags": [ "Account" ], "summary": " - Get client account", "operationId": "e809af65c12695106f3cbcf67011e1c1", "responses": { "200": { "description": "OK", "content": { "application/json":{ "schema":{ "type": "object", "example": { "data": { "bank_account": { "account_number": "4785963214785", "account_date": "2022-10-10 11:41:02", "currency": "USD", "iban": "TTMK", "bank_name": "Turkish Bank", "country": "Brazil" }, "contacts": { "address": "Gami city", "phone": "+99365555555", "email": "johndoe@gmail.com" }, "account_type": "business", "country": "Turkmenistan", "profile": null, "legal_number": null, "legal_expires_at": null, "legal_can_apply": true, "legal_can_extend": false, "application_status": null } } } } } }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/legalization-broker-status": { "get": { "tags": [ "Account" ], "summary": " - Get account legalization and broker statuses", "operationId": "e809af65c12695106f3cbcf67011e1cy", "responses": { "200": { "description": "OK", "content": { "application/json":{ "schema":{ "type": "object", "example": { "data": { "legal_number": null, "legal_expires_at": null, "legal_can_apply": true, "legal_can_extend": false, "application_status": null, "broker_number": null, "broker_expires_at": null, "broker_can_apply": true, "broker_can_extend": false, "application_broker_status": null } } } } } }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/contacts": { "put": { "tags": [ "Account" ], "summary": " - Store account contacts", "operationId": "e809af65c12695106f3cbcf67011e145", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "address": { "type": "string" }, "phone": { "type": "string" }, "email": { "type": "string" }, "fax": { "type": "string" } }, "type": "object", "example": { "address": "Gami city", "phone": "+99365555555", "email": "johndoe@gmail.com", "fax": "+99312454545" } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "example": { "data": { "address": "Gami city", "phone": "+99365555555", "email": "johndoe@gmail.com", "fax": "+99365555555" } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object" } } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/bank": { "put": { "tags": [ "Account" ], "summary": " - Store account bank info", "operationId": "e809af65c12695106f3cbcf67011embgt", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "account_number": { "type": "string" }, "account_date": { "type": "string" }, "currency": { "type": "string" }, "iban": { "type": "string" }, "bank_name": { "type": "string" }, "country": { "type": "string" } }, "type": "object", "example": { "account_number": "4785963214785", "account_date": "2022-10-10 11:41:02", "currency": "USD", "iban": "TTMK", "bank_name": "Turkish Bank", "country": "Brazil" } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "example": { "data": { "account_number": "4785963214785", "account_date": "2022-10-10 11:41:02", "currency": "USD", "iban": "TTMK", "bank_name": "Turkish Bank", "country": "Brazil" } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object" } } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/profile/#business": { "put": { "tags": [ "Account" ], "summary": " - Store account profile info for business", "operationId": "p809af65c12695106f3cbcf67011embgt", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "account_type": { "type": "string" }, "name": { "type": "string" }, "surname": { "type": "string" }, "patronomic_name": { "type": "string" }, "date_of_birth": { "type": "date" }, "birth_place": { "type": "string" }, "citizenship_id": { "type": "string" }, "registration_address": { "type": "string" } }, "type": "object", "example": { "account_type": "business", "name": "John", "surname": "Doe", "patronomic_name": "Muhammedovich", "date_of_birth": "2001-01-20", "birth_place": "Ashgabat", "citizenship_id": 2, "registration_address": "Ashgabat" } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object" } } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/profile/#company": { "put": { "tags": [ "Account" ], "summary": " - Store account profile info for company", "operationId": "c809af65c12695106f3cbcf67011embgt", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "name": {"type": "string"}, "short_name": {"type": "string"}, "registration_number": {"type": "string"}, "registration_date": {"type": "string"}, "state_registration_agency": {"type": "string"}, "registration_place": {"type": "string"}, "registration_address": {"type": "string"} }, "type": "object", "example": { "name": "Tapylgysyz mahabat", "short_name":"TPS", "registration_number": "132321", "registration_date":"2001-01-20", "state_registration_agency": "Agcy bilmeyanem", "registration_place":"Shatauz", "registration_address": "Yubileyni Under Radar" } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object" } } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/clients": { "get": { "tags": [ "Account" ], "summary": " - Get account clients", "operationId": "e809af65c12695106f3cbcf67011e2c2", "responses": { "200": { "description": "OK", "content": { "application/json":{ "schema":{ "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/account/add-client": { "post": { "tags": [ "Account" ], "summary": " - Add account user", "operationId": "a718f172ff3ac464d723835815f8fb77", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" } }, "type": "object", "example": { "firstname": "Mahri", "lastname": "Ilmedova", "email": "ilmedovamahri@gmail.com", "password": 12345678 } } } } }, "responses": { "201": { "description": "OK", "content": { "application/json": { "schema": { "properties": { "token": { "type": "string" }, "client": { "properties": { "id": { "type": "integer" }, "firstname": { "type": "string" }, "lastname": { "type": "string" }, "email": { "type": "string" }, "is_verified": { "type": "boolean" } }, "type": "object" } }, "type": "object" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "properties": { "message": { "type": "string" }, "errors": { "type": "object" } }, "type": "object" } } } } } } }, "/api/login": { "post": { "tags": [ "Authorization" ], "summary": " - Login user", "operationId": "44212a9096e4b09358281e9ec8a0701d", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "email": { "type": "string" }, "password": { "type": "string" } }, "type": "object", "example": { "email": "ilmedovamahri@gmail.com", "password": 12345678 } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object" } } } } } } }, "/api/register": { "post": { "tags": [ "Authorization" ], "summary": " - Register user", "operationId": "a718f172ff3ac464d723835815f8fb57", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" }, "account_type": { "type": "string" }, "country": { "type": "integer" } }, "type": "object", "example": { "firstname": "Mahri", "lastname": "Ilmedova", "email": "ilmedovamahri@gmail.com", "password": 12345678, "country": 1, "account_type": "business" } } } } }, "responses": { "201": { "description": "OK", "content": { "application/json": { "schema": { "properties": { "token": { "type": "string" }, "client": { "properties": { "id": { "type": "integer" }, "firstname": { "type": "string" }, "lastname": { "type": "string" }, "email": { "type": "string" }, "is_verified": { "type": "boolean" } }, "type": "object" } }, "type": "object" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "properties": { "message": { "type": "string" }, "errors": { "type": "object" } }, "type": "object" } } } } } } }, "/api/verify-email": { "post": { "tags": [ "Authorization" ], "summary": " - Verify email of client", "operationId": "af6cac9e8cbada96c437ae2bc707a3be", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "email": { "type": "string" }, "token": { "type": "string" } }, "type": "object", "example": { "email": "ilmedovamahri@gmail.com", "token": "4515" } } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Missing fields (email or token)" }, "404": { "description": "Client not found" }, "401": { "description": "Unauthorised. Tokens do not match" } } } }, "/api/client": { "get": { "tags": [ "Authorization" ], "summary": " - Get user", "operationId": "ca66439cda88a6db7126df9a2bcdab16", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/logout": { "post": { "tags": [ "Authorization" ], "summary": " - Logout user", "operationId": "79854151e609bd20032aa5aa4d5a35c0", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/forgot-password": { "post": { "tags": [ "Authorization" ], "summary": " - Send a user password reset link", "operationId": "0569c8517e57256a8097079796c64246", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "email": { "type": "string" } }, "type": "object", "example": { "email": "ilmedovamahri@gmail.com" } } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/reset-password": { "post": { "tags": [ "Authorization" ], "summary": " - Reset client password and enter new", "operationId": "b7633b69dc4b52a11d4bf29165b57061", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "email": { "type": "string" }, "token": { "type": "string" }, "password": { "type": "string" }, "confirm_password": { "type": "string" } }, "type": "object", "example": { "email": "ilmedovamahri@gmail.com", "token": "2546", "password": "Hello001!", "confirm_password": "Hello001!" } } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/update-client": { "post": { "tags": [ "Authorization" ], "summary": " - Update client account", "description": "Every field is required, except password. Password field is optional", "operationId": "46b65b60e64a23248dc5aa4062c5d21e", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "password": { "type": "string" } }, "type": "object", "example": { "firstname": "Mahri", "lastname": "Ilmedova", "password": "Hello001!" } } } } }, "responses": { "201": { "description": "Successful created", "content": { "application/json": { "schema": {} } } }, "404": { "description": "Not found", "content": { "application/json": { "schema": {} } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/countries": { "get": { "tags": [ "Resources" ], "summary": " - Get countries list", "operationId": "564aa61702ec5a6b97507a0505ef1356", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK" } } } }, "/api/categories": { "get": { "tags": [ "Resources" ], "summary": " - Get categories list for ticketing questions", "operationId": "564aa61702ec5a6b97507a0505ef1tgh", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK" } } } }, "/api/faqs": { "get": { "tags": [ "Resources" ], "summary": " - Get FAQs list", "operationId": "564aa61702ec5a6b97507a0505ef1tghh", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ticket/my-tickets": { "get": { "tags": [ "Tickets" ], "summary": " - Get client tickets", "operationId": "3dfdd9308e24af6164e9a9235d383bbb", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/ticket/post-ticket": { "post": { "tags": [ "Tickets" ], "summary": " - Create new ticket", "operationId": "24acefdf33a7a299d4773103cb6626fe", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "title": { "type": "string" }, "content": { "type": "string" }, "category_id": { "type": "integer" } }, "type": "object", "example": { "content": "ilmedovamahri@gmail.com", "title": "hello", "category_id": 1 } } } } }, "responses": { "201": { "description": "Successful created", "content": { "application/json": { "schema": {} } } }, "404": { "description": "Not found", "content": { "application/json": { "schema": {} } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/ticket/ticket-messages": { "get": { "tags": [ "Tickets" ], "summary": " - Get ticket messages", "operationId": "61f3e305598ff903e170894ab09ad61d", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }, { "name": "ticket_id", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security": [ { "bearerAuth": [] } ] } }, "/api/ticket/post-message": { "post": { "tags": [ "Tickets" ], "summary": " - Post ticket message", "operationId": "8eecfef93e99b11c97b37b69e3457f41", "parameters": [ { "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "content": { "type": "string" }, "ticket_id": { "type": "integer" } }, "type": "object", "example": { "content": "ilmedovamahri@gmail.com", "ticket_id": 2 } } } } }, "responses": { "201": { "description": "Successful created", "content": { "application/json": { "schema": {} } } }, "404": { "description": "Not found", "content": { "application/json": { "schema": {} } } } }, "security": [ { "bearerAuth": [] } ] } }, "/api/application": { "get": { "tags": ["Application"], "summary": "Get accounts Legalization application", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/application/new": { "get": { "tags": ["Application"], "summary": "Create,make new Legalization application", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/application/upload/{attachment_id}": { "post": { "tags": ["Application"], "summary": "Upload document to application", "parameters": [{ "name": "attachment_id", "in": "path", "description": "Attachment id", "required": true, "schema": { "type": "integer" } }], "requestBody": { "content": { "multipart/form-data:": { "schema": { "properties": { "file": { "type": "string", "format": "binary", "required": true } }, "type": "object" } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/application/apply": { "post": { "tags": ["Application"], "summary": "Commit,apply application. send to review ", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "example": { "data": { "attachment_id": 1, "attachment_name": "Pasport Kopia", "attachment_size": "10", "attachment_file_type": "pdf", "attachment_file_path": "/storage/mtorage/gdeto/tam", "document_name": "Pasport Kopia", "document_description": "Pasport kopialay", "document_max_size": "10" } } } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/application/oprosnik": { "get": { "tags": ["Application"], "summary": "Download oprosnik", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "security":[ { "bearerAuth": [] } ] } }, "/api/broker-application": { "get": { "tags": ["Broker-Application"], "summary": "Get accounts Legalization application", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/broker-application/new": { "get": { "tags": ["Broker-Application"], "summary": "Create,make new Legalization application", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/broker-application/upload/{attachment_id}": { "post": { "tags": ["Broker-Application"], "summary": "Upload document to application", "parameters": [{ "name": "attachment_id", "in": "path", "description": "Attachment id", "required": true, "schema": { "type": "integer" } }], "requestBody": { "content": { "multipart/form-data:": { "schema": { "properties": { "file": { "type": "string", "format": "binary", "required": true } }, "type": "object" } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/broker-application/apply": { "post": { "tags": ["Broker-Application"], "summary": "Commit,apply application. send to review ", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "example": { "data": { "attachment_id": 1, "attachment_name": "Pasport Kopia", "attachment_size": "10", "attachment_file_type": "pdf", "attachment_file_path": "/storage/mtorage/gdeto/tam", "document_name": "Pasport Kopia", "document_description": "Pasport kopialay", "document_max_size": "10" } } } } } }, "401": { "description": "Unauthorized" } }, "security":[ { "bearerAuth": [] } ] } }, "/api/broker-application/oprosnik": { "get": { "tags": ["Broker-Application"], "summary": "Download oprosnik", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "security":[ { "bearerAuth": [] } ] } }, "/api/contract": { "post": { "tags": ["Contract"], "summary": "Contract monitoring", "parameters": [{ "name": "X-Localization", "in": "header", "description": "Localization", "required": false, "schema": { "type": "string" }, "examples": { "ru": { "summary": "Russian localization", "value": "ru" }, "en": { "summary": "English localization", "value": "en" }, "tm": { "summary": "Turkmen localization", "value": "tm" } } }], "security":[ { "bearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "number": { "type": "string" } }, "type": "object", "example": { "number": "4193" } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object" } } } }, "404": { "description": "Not found", "content": { "application/json": { "schema": { "type": "object" } } } } } } } }, "components": { "securitySchemes": { "bearerAuth": { "type": "http", "name": "bearerAuth", "in": "header", "bearerFormat": "JWT", "scheme": "bearer" } } } }