{
  "openapi": "3.1.0",
  "info": {
    "title": "Website Developers Pakistan API",
    "version": "1.0.0",
    "description": "Official API for Website Developers Pakistan. Access company metadata, service details, pricing tiers, FAQs, and contact details.",
    "contact": {
      "name": "Website Developers Pakistan",
      "url": "https://websitedevelopers.pk",
      "email": "contact@websitedevelopers.pk"
    }
  },
  "servers": [
    {
      "url": "https://websitedevelopers.pk",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/company.json": {
      "get": {
        "summary": "Get Company Metadata & Profile",
        "description": "Returns company details including services offered, contact numbers, address, tech stack, team size, and business stats.",
        "operationId": "getCompanyInfo",
        "responses": {
          "200": {
            "description": "Company information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/services.json": {
      "get": {
        "summary": "Get All Services and Pricing",
        "description": "Returns full catalog of web development, eCommerce, mobile app, SEO, security, and digital marketing services with pricing tiers and features.",
        "operationId": "getServices",
        "responses": {
          "200": {
            "description": "List of all services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Service"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/faqs.json": {
      "get": {
        "summary": "Get Frequently Asked Questions",
        "description": "Returns global FAQs (home, pricing, contact, services overview) and service-specific FAQs.",
        "operationId": "getFaqs",
        "responses": {
          "200": {
            "description": "Complete FAQ dataset",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaqsResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompanyInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "alternateName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "logo": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "foundingDate": {
            "type": "string"
          },
          "teamSize": {
            "type": "number"
          },
          "techStack": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contact": {
            "type": "object",
            "properties": {
              "telephone": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "phone": {
                "type": "object",
                "properties": {
                  "raw": {
                    "type": "string"
                  },
                  "display": {
                    "type": "string"
                  }
                }
              },
              "whatsapp": {
                "type": "object",
                "properties": {
                  "raw": {
                    "type": "string"
                  },
                  "display": {
                    "type": "string"
                  },
                  "defaultMessage": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "address": {
            "type": "object",
            "properties": {
              "streetAddress": {
                "type": "string"
              },
              "locality": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "postalCode": {
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            }
          },
          "stats": {
            "type": "object",
            "properties": {
              "projectsDelivered": {
                "type": "string"
              },
              "yearsInBusiness": {
                "type": "string"
              },
              "retainedClients": {
                "type": "string"
              },
              "teamSize": {
                "type": "string"
              },
              "clientRetention": {
                "type": "string"
              },
              "foundedYear": {
                "type": "string"
              }
            }
          }
        }
      },
      "PricingTier": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "pricePkr": {
            "type": "string"
          },
          "cadence": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "featured": {
            "type": "boolean"
          }
        }
      },
      "Service": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "shortTitle": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "highlights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "included": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "process": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "stack": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pricing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PricingTier"
            }
          },
          "faqs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "q": {
                  "type": "string"
                },
                "a": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "FaqItem": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string"
          },
          "a": {
            "type": "string"
          }
        }
      },
      "FaqsResponse": {
        "type": "object",
        "properties": {
          "global": {
            "type": "object",
            "properties": {
              "home": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FaqItem"
                }
              },
              "pricing": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FaqItem"
                }
              },
              "contact": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FaqItem"
                }
              },
              "servicesOverview": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FaqItem"
                }
              }
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "faqs": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FaqItem"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}