openapi: 3.0.1 info: title: TryDome API description: API for TryDome template discovery and installation. version: '1.0' servers: - url: https://api.staging.trydome.io/api/v1 description: Staging server paths: /templates/discovery/install: post: summary: Install a template discovery description: Endpoint to install a template discovery. operationId: installTemplateDiscovery tags: - Templates requestBody: required: true content: application/json: schema: type: object properties: organization: type: string example: "" destination: type: string example: "Jasmine Blog" isPrivate: type: boolean example: true responses: '200': description: Successful operation content: application/json: schema: type: object properties: backendRepoId: type: string example: "571890287" frontendRepoId: type: string example: "679128352" '400': description: Bad request '401': description: Unauthorized '500': description: Internal server error security: - jwt: [] x-codegen-request-body-name: body /templates/discovery/deploy: post: summary: Deploy a template discovery description: Endpoint to deploy a template discovery. operationId: deployTemplateDiscovery tags: - Templates requestBody: required: true content: application/json: schema: type: object properties: projectId: type: string example: "5918273" responses: '200': description: Successful operation content: application/json: schema: type: object properties: backendServiceId: type: string example: "579301411" frontendServiceId: type: string example: "7501092835" databaseId: type: string example: "5617891982" '400': description: Bad request '401': description: Unauthorized '500': description: Internal server error security: - jwt: [] x-codegen-request-body-name: body /templates/discovery/title: post: summary: Generate title for a template discovery description: Endpoint to generate title for a template discovery. operationId: setTitleTemplateDiscovery tags: - Templates requestBody: required: true content: application/json: schema: type: object properties: productIdea: type: string example: "I want to build a personal blog" productName: type: string example: "" industry: type: string example: "personal blog" brandVoice: type: string example: "share!" responses: '200': description: Successful operation content: application/json: schema: type: object properties: title: type: string example: "Try Dome" subtitle: type: string example: "Launch Your SaaS. Unlock Your Freedom!" '400': description: Bad request '401': description: Unauthorized '500': description: Internal server error security: - jwt: [] x-codegen-request-body-name: body /templates/discovery/color: post: summary: Generate color for a template discovery description: Endpoint to generate color for a template discovery. operationId: setColorTemplateDiscovery tags: - Templates requestBody: required: true content: application/json: schema: type: object properties: productIdea: type: string example: "I want to build a personal blog" productName: type: string example: "" industry: type: string example: "personal blog" brandVoice: type: string example: "share!" colorDescription: type: string example: "warm" responses: '200': description: Successful operation content: application/json: schema: type: object properties: primaryColor: type: object properties: name: type: string example: "indigo" hexCode: type: string example: "#6366f1" secondaryColor: type: object properties: name: type: string example: "rose" hexCode: type: string example: "#f43f5e" '400': description: Bad request '401': description: Unauthorized '500': description: Internal server error security: - jwt: [] x-codegen-request-body-name: body /templates/discovery/download: post: tags: - Templates summary: Download Discovery Template description: Download a discovery template operationId: downloadDiscoveryTemplate requestBody: required: true content: application/json: schema: type: object properties: organization: type: string destination: type: string example: Jasmine Blog isPrivate: type: boolean example: true parameters: - name: Content-Type in: header required: true schema: type: string example: application/json - name: accept in: header required: true schema: type: string example: application/json, text/plain, */* - name: accept-language in: header required: true schema: type: string example: en-US,en;q=0.9 - name: cookie in: header required: true schema: type: string example: jwt=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyODI3MDQ2NjAiLCJleHAiOjE3MTc0MTk5MDB9.r_ZqMQdHdAr1e00TDD_J6SUvW2_R8jql7pl1VG0yrlwVE6lia3Afw53HyBo3axASL12Xm5EJX2HKG9mBxnVrJw - name: origin in: header required: true schema: type: string example: https://app.staging.trydome.io - name: priority in: header required: true schema: type: string example: u=1, i - name: referer in: header required: true schema: type: string example: https://app.staging.trydome.io/ - name: sec-ch-ua in: header required: true schema: type: string example: '"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' - name: sec-ch-ua-mobile in: header required: true schema: type: string example: ?0 - name: sec-ch-ua-platform in: header required: true schema: type: string example: macOS - name: sec-fetch-dest in: header required: true schema: type: string example: empty - name: sec-fetch-mode in: header required: true schema: type: string example: cors - name: sec-fetch-site in: header required: true schema: type: string example: same-site - name: user-agent in: header required: true schema: type: string example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 responses: '200': description: Provided zipped source code content: application/zip: schema: type: string format: binary '400': description: Bad Request content: application/json: schema: type: object properties: error: type: string '404': description: Not Found content: application/json: schema: type: object properties: error: type: string '500': description: Internal Server Error content: application/json: schema: type: object properties: error: type: string components: securitySchemes: jwt: type: apiKey name: jwt in: cookie schemas: Discovery: type: object properties: idea: type: object properties: productIdea: type: string productName: type: string industry: type: string brandVoice: type: string colorDescription: type: string painPoint: type: string outcome: type: string settings: type: object properties: auth: type: object properties: isSelected: type: boolean solution: type: string payment: type: object properties: isSelected: type: boolean solution: type: string plan: type: string selectedTitle: type: object properties: title: type: string subtitle: type: string colorSettings: type: object properties: primaryColor: type: string secondaryColor: type: string selectedFont: type: string example: "Inconsolata" selectedTheme: type: string example: "dark" components: type: array properties: id: type: string example: "BannerWithButton"