{"openapi":"3.1.0","info":{"version":"1.0.0","title":"OpenAPI"},"components":{"schemas":{},"parameters":{}},"paths":{"/ranking/name":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing name","operationId":"post_CalculateName","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated name score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/services":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing services","operationId":"post_CalculateServices","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated services score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/professionaltitles":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing professional titles","operationId":"post_CalculateProfessionalTitles","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated name score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/qualifications":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing qualifications","operationId":"post_CalculateQualifications","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated name score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/availability":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing availability","operationId":"post_CalculateAvailability","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated availability score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/aboutme":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing about me","operationId":"post_CalculateAboutMe","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated name score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/referrals":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing referrals","operationId":"post_CalculateReferrals","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated referrals score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/prompts":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing prompts","operationId":"post_CalculatePrompts","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated prompts score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/clientele":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing clientele","operationId":"post_CalculateClientele","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated clientele score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/locations":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing location","operationId":"post_CalculateLocation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated location score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/ranking/specialties":{"post":{"tags":["Ratings"],"summary":"Calculate score for listing specialties","operationId":"post_CalculateSpecialties","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Stores the calculated specialties score in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/translate/listings":{"post":{"tags":["Translation"],"summary":"Translate content by reference","operationId":"post_ContentTranslation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string","enum":["profession_listings"]},"listing_id":{"type":"number","minimum":1},"columns_to_translate":{"type":"array","items":{"type":"string","enum":["about_me","services","professions","social_groups","faq","practice_intro","issues_treated"]}}},"required":["table","listing_id","columns_to_translate"]}}}},"responses":{"200":{"description":"Stores the translated content in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/translate/prompt_responses":{"post":{"tags":["Translation"],"summary":"Translate prompt responses by reference","operationId":"post_PromptResponsesTranslation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string","enum":["prompt_responses"]},"listing_id":{"type":"number","minimum":1},"prompt_id":{"type":"number","minimum":1},"id":{"type":"number","minimum":1}},"required":["table","listing_id","prompt_id","id"]}}}},"responses":{"200":{"description":"Stores the translated prompt responses in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/translate/profile_pages":{"post":{"tags":["Translation"],"summary":"Translate profile page content by reference","operationId":"post_ProfileTranslation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string","enum":["profiles"]},"username":{"type":"string","minLength":1},"columns_to_translate":{"type":"array","items":{"type":"string","enum":["about","overview","faq"]}}},"required":["table","username","columns_to_translate"]}}}},"responses":{"200":{"description":"Stores the translated profile page content in the database","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/similarity/listing_embed":{"post":{"tags":["Similarity"],"summary":"Generate a listing embed","operationId":"post_GenerateListingEmbed","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"searchable_id":{"type":["number","null"]}},"required":["searchable_id"]}}}},"responses":{"200":{"description":"Generates a listing embed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/label/prompt_responses":{"post":{"tags":["Labeling"],"summary":"Label a prompt response with the relevant pseo keywords of type treatment","operationId":"post_PromptResponseLabel","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"category_id":{"type":"number"},"answer_language":{"type":"string"}},"required":["listing_id","category_id","answer_language"]}}}},"responses":{"200":{"description":"Labels the prompt response with the relevant pseo keywords of type treatment","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/label/listings":{"post":{"tags":["Labeling"],"summary":"Label a listing with the relevant pseo keywords of type treatment","operationId":"post_ListingLabel","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"answer_language":{"type":"string"}},"required":["listing_id","answer_language"]}}}},"responses":{"200":{"description":"Labels the listing with the relevant pseo keywords of type treatment","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/tag/prompt_responses":{"post":{"tags":["Tagging"],"summary":"Tag a prompt response with the relevant tags from the taxonomy","operationId":"post_PromptResponseTag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"prompt_id":{"type":"number"},"table":{"type":"string","enum":["prompt_responses","prompt_responses_translations"]}},"required":["listing_id","prompt_id","table"]}}}},"responses":{"200":{"description":"Tags the prompt response with the relevant tags from the taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/tag/listings":{"post":{"tags":["Tagging"],"summary":"Tag a listing with the relevant tags from the taxonomy","operationId":"post_ListingsTag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"table":{"type":"string","enum":["profession_listings","listings_translation_table"]}},"required":["listing_id"]}}}},"responses":{"200":{"description":"Tags the listing with the relevant tags from the taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/tag/practice_intro":{"post":{"tags":["Tagging"],"summary":"Tag a listing's practice intro with the relevant tags from the taxonomy","operationId":"post_PracticeIntroTag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"table":{"type":"string","enum":["profession_listings","listings_translation_table"]}},"required":["listing_id"]}}}},"responses":{"200":{"description":"Tags the practice intro with the relevant tags from the taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/tag/issues_treated":{"post":{"tags":["Tagging"],"summary":"Tag a listing's issues treated with the relevant tags from the taxonomy","operationId":"post_IssuesTreatedTag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"table":{"type":"string","enum":["profession_listings","listings_translation_table"]}},"required":["listing_id"]}}}},"responses":{"200":{"description":"Tags the issues treated with the relevant tags from the taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}},"/tag/social_groups":{"post":{"tags":["Tagging"],"summary":"Tag a listing's social groups with the relevant tags from the taxonomy","operationId":"post_SocialGroupsTag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"number"},"table":{"type":"string","enum":["profession_listings","listings_translation_table"]}},"required":["listing_id"]}}}},"responses":{"200":{"description":"Tags the social groups with the relevant tags from the taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"result":{"type":"object","properties":{}}},"required":["success","result"]}}}}}}}},"webhooks":{}}