⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
dalily.dev-unit.com
/
.scribe
/
endpoints
/
View File Name :
04.yaml
name: Users description: '' endpoints: - httpMethods: - GET uri: api/genders metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'List genders' description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: [] cleanUrlParameters: [] queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 200 content: '{"success":true,"message":null,"result":{"1":{"id":1,"name":"MALE","label":"Male","title":"Mr."},"2":{"id":2,"name":"FEMALE","label":"Female","title":"Mrs"}}}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: 'api/genders/{id}' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Get gender' description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The gender's ID." required: true example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 1 queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 200 content: '{"success":true,"message":null,"result":{"id":1,"name":"MALE","label":"Male","title":"Mr."}}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: api/userTypes metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'List user types' description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: [] cleanUrlParameters: [] queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 200 content: '{"success":true,"message":null,"result":{"2":{"id":2,"name":"INDIVIDUAL","label":"Individual"},"1":{"id":1,"name":"PROFESSIONAL","label":"Professional"}}}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: 'api/userTypes/{id}' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Get user type' description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user type's ID." required: true example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 1 queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 200 content: '{"success":true,"message":null,"result":{"id":1,"name":"PROFESSIONAL","label":"Professional"}}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: api/users metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'List users' description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: [] cleanUrlParameters: [] queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 403 content: '{"success":false,"message":"Forbidden","result":null}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: 'api/users/{id}' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Get user' description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_KEY}' Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 3 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 3 queryParameters: embed: name: embed description: 'Comma-separated list of the post relationships for Eager Loading - Possible values: country,userType,gender,countPostsViews,countPosts,countSavedPosts.' required: false example: null type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanQueryParameters: embed: null bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 200 content: '{"success":true,"message":null,"result":{"id":3,"name":"User Demo","username":null,"two_factor_enabled":false,"two_factor_method":"email","updated_at":"2025-03-21T03:29:22.000000Z","original_updated_at":"2025-03-21 03:29:22","original_last_activity":"2025-03-21 03:54:02","created_at_formatted":"May 1st, 2024 at 17:02","photo_url":"https:\/\/demo.laraclassifier.local\/storage\/avatars\/us\/3\/thumbnails\/800x800-4d0360f67fe464e4cb2c4e8ad1eed971.jpg","p_is_online":false,"country_flag_url":"https:\/\/demo.laraclassifier.local\/images\/flags\/rectangle\/16\/us.png"}}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: - headers - Authorization - 'Bearer 6kfhdb3gcev156aVPD8E4Za' controller: null method: null route: null custom: [] - httpMethods: - POST uri: api/users metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Store user' description: '' authenticated: false custom: [] headers: Content-Type: multipart/form-data Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: [] cleanUrlParameters: [] queryParameters: [] cleanQueryParameters: [] bodyParameters: name: name: name description: 'The name of the user.' required: true example: 'John Doe' type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] country_code: name: country_code description: "The code of the user's country." required: true example: US type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] auth_field: name: auth_field description: "The user's auth field ('email' or 'phone')." required: true example: email type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] phone: name: phone description: "The mobile phone number of the user (Required when 'auth_field' value is 'phone')." required: false example: '+17656766467' type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] phone_country: name: phone_country description: "The user's phone number's country code (Required when the 'phone' field is filled)." required: true example: null type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] password: name: password description: "The user's password." required: true example: js!X07$z61hLA type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_terms: name: accept_terms description: 'Field to allow user to accept or not the website terms.' required: true example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] email: name: email description: "The user's email address (Required when 'auth_field' value is 'email')." required: false example: john.doe@domain.tld type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] language_code: name: language_code description: "The code of the user's spoken language." required: false example: en type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] user_type_id: name: user_type_id description: 'The ID of user type.' required: false example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] gender_id: name: gender_id description: 'The ID of gender.' required: false example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] photo_path: name: photo_path description: 'The file of user photo.' required: false example: null type: file enumValues: [] exampleWasSpecified: false nullable: false custom: [] phone_hidden: name: phone_hidden description: 'Field to hide or show the user phone number in public.' required: false example: false type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] username: name: username description: "The user's username." required: false example: john_doe type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] password_confirmation: name: password_confirmation description: "The confirmation of the user's password." required: true example: js!X07$z61hLA type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] disable_comments: name: disable_comments description: "Field to disable or enable comments on the user's listings." required: false example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] create_from_ip: name: create_from_ip description: "The user's IP address." required: true example: 127.0.0.1 type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_marketing_offers: name: accept_marketing_offers description: 'Field to allow user to accept or not marketing offers sending.' required: false example: false type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] time_zone: name: time_zone description: "The user's time zone." required: false example: America/New_York type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] captcha_key: name: captcha_key description: 'Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel).' required: false example: ad type: string enumValues: [] exampleWasSpecified: false nullable: false custom: [] cleanBodyParameters: name: 'John Doe' country_code: US auth_field: email phone: '+17656766467' phone_country: null password: js!X07$z61hLA accept_terms: true email: john.doe@domain.tld language_code: en user_type_id: 1 gender_id: 1 phone_hidden: false username: john_doe password_confirmation: js!X07$z61hLA disable_comments: true create_from_ip: 127.0.0.1 accept_marketing_offers: false time_zone: America/New_York captcha_key: ad fileParameters: photo_path: null responses: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - GET uri: 'api/users/{id}/stats' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: "User's mini stats" description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 3 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 3 queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 401 content: '{"success":false,"message":"Unauthenticated or Token Expired, Please Login.","result":null,"error":"Unauthenticated or Token Expired, Please Login."}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: - headers - Authorization - 'Bearer E16k5abdhac348geVZPvD6f' controller: null method: null route: null custom: [] - httpMethods: - GET uri: 'api/users/{id}/photo/delete' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: "Delete user's photo" description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: - status: 401 content: '{"success":false,"message":"Unauthenticated or Token Expired, Please Login.","result":null,"error":"Unauthenticated or Token Expired, Please Login."}' headers: content-type: 'application/json; charset=UTF-8' cache-control: 'no-cache, private' vary: Origin description: null custom: [] responseFields: [] auth: - headers - Authorization - 'Bearer P8fce1v6aEd4gkZDV3h5ba6' controller: null method: null route: null custom: [] - httpMethods: - PUT uri: 'api/users/{id}/photo' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: "Update user's photo" description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: multipart/form-data Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: photo_path: name: photo_path description: 'Must be a file. Must be at least 0 kilobytes. Must not be greater than 1500 kilobytes.' required: true example: null type: file enumValues: [] exampleWasSpecified: false nullable: false custom: [] latest_update_ip: name: latest_update_ip description: "The user's IP address." required: true example: 127.0.0.1 type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanBodyParameters: latest_update_ip: 127.0.0.1 fileParameters: photo_path: null responses: [] responseFields: [] auth: - headers - Authorization - 'Bearer 1h8Z5Da6kbd4V3age6PEvcf' controller: null method: null route: null custom: [] - httpMethods: - PUT uri: 'api/users/{id}/preferences' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: "Update user's preferences" description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: disable_comments: name: disable_comments description: "Field to disable or enable comments on the user's listings." required: false example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] latest_update_ip: name: latest_update_ip description: "The user's IP address." required: true example: 127.0.0.1 type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_terms: name: accept_terms description: 'Field to allow user to accept or not the website terms.' required: true example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_marketing_offers: name: accept_marketing_offers description: 'Field to allow user to accept or not marketing offers sending.' required: false example: false type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] time_zone: name: time_zone description: "The user's time zone." required: false example: America/New_York type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanBodyParameters: disable_comments: true latest_update_ip: 127.0.0.1 accept_terms: true accept_marketing_offers: false time_zone: America/New_York fileParameters: [] responses: [] responseFields: [] auth: - headers - Authorization - 'Bearer aeE63dk5gfP6Dhca1vbV8Z4' controller: null method: null route: null custom: [] - httpMethods: - PUT uri: 'api/users/{id}/dark-mode' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: "Update the user's dark mode option" description: '' authenticated: false custom: [] headers: Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: dark_mode: name: dark_mode description: "The user's dark mode value." required: true example: 0 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanBodyParameters: dark_mode: 0 fileParameters: [] responses: [] responseFields: [] auth: [] controller: null method: null route: null custom: [] - httpMethods: - PUT uri: 'api/users/{id}' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Update user' description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: multipart/form-data Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: name: name: name description: 'The name of the user.' required: true example: 'John Doe' type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] auth_field: name: auth_field description: "The user's auth field ('email' or 'phone')." required: true example: email type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] phone: name: phone description: "The mobile phone number of the user (Required when 'auth_field' value is 'phone')." required: false example: '+17656766467' type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] phone_country: name: phone_country description: "The user's phone number's country code (Required when the 'phone' field is filled)." required: true example: null type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] username: name: username description: "The user's username." required: false example: john_doe type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] email: name: email description: "The user's email address (Required when 'auth_field' value is 'email')." required: true example: john.doe@domain.tld type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] country_code: name: country_code description: "The code of the user's country." required: true example: US type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] language_code: name: language_code description: "The code of the user's spoken language." required: false example: en type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] user_type_id: name: user_type_id description: 'The ID of user type.' required: false example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] gender_id: name: gender_id description: 'The ID of gender.' required: false example: 1 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] photo_path: name: photo_path description: 'The file of user photo.' required: false example: null type: file enumValues: [] exampleWasSpecified: false nullable: false custom: [] remove_photo: name: remove_photo description: "Enable the user photo removal ('0' or '1'). When its value is '1' the user's photo file will be removed and the 'photo_path' column will be empty." required: false example: 0 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] phone_hidden: name: phone_hidden description: 'Field to hide or show the user phone number in public.' required: false example: false type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] password: name: password description: "The user's password." required: true example: js!X07$z61hLA type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] password_confirmation: name: password_confirmation description: "The confirmation of the user's password." required: true example: js!X07$z61hLA type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] disable_comments: name: disable_comments description: "Field to disable or enable comments on the user's listings." required: false example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] latest_update_ip: name: latest_update_ip description: "The user's IP address." required: true example: 127.0.0.1 type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_terms: name: accept_terms description: 'Field to allow user to accept or not the website terms.' required: true example: true type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] accept_marketing_offers: name: accept_marketing_offers description: 'Field to allow user to accept or not marketing offers sending.' required: false example: false type: boolean enumValues: [] exampleWasSpecified: true nullable: false custom: [] time_zone: name: time_zone description: "The user's time zone." required: false example: America/New_York type: string enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanBodyParameters: name: 'John Doe' auth_field: email phone: '+17656766467' phone_country: null username: john_doe email: john.doe@domain.tld country_code: US language_code: en user_type_id: 1 gender_id: 1 remove_photo: 0 phone_hidden: false password: js!X07$z61hLA password_confirmation: js!X07$z61hLA disable_comments: true latest_update_ip: 127.0.0.1 accept_terms: true accept_marketing_offers: false time_zone: America/New_York fileParameters: photo_path: null responses: [] responseFields: [] auth: - headers - Authorization - 'Bearer 4e8b3ac6D6d5V1aEPfhkgvZ' controller: null method: null route: null custom: [] - httpMethods: - DELETE uri: 'api/users/{id}' metadata: groupName: Users groupDescription: '' subgroup: '' subgroupDescription: '' title: 'Delete user' description: '' authenticated: true custom: [] headers: Authorization: 'Bearer {YOUR_AUTH_TOKEN}' Content-Type: application/json Accept: application/json Content-Language: en X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs= X-AppType: docs urlParameters: id: name: id description: "The user's ID." required: true example: 999999 type: integer enumValues: [] exampleWasSpecified: true nullable: false custom: [] cleanUrlParameters: id: 999999 queryParameters: [] cleanQueryParameters: [] bodyParameters: [] cleanBodyParameters: [] fileParameters: [] responses: [] responseFields: [] auth: - headers - Authorization - 'Bearer va5aVg3eEZ1hf6bkPD6dc48' controller: null method: null route: null custom: []