Skip to main content

Deploy API

  • SWAINOnce automaticallyyour generatesproject is configured (schema synced, authentication set up, user mapping, social auth, and authorization), navigate to the Deploy API step to generate and publish your REST API.
  • Click Deploy API to build and expose REST endpoints for all tables and relationships defined in your synced schema; theseSWAIN automatically generates CRUD endpoints areand readyOpenAPI to use without additional coding.documentation.
  • UseThe API will be hosted in the SWAIN environment associated with your project; use JWT tokens or API keys to authenticate requests to your API and secure access.
  • DeployUse the interactive API explorer in the SWAIN dashboard to test your APIendpoints, byview connectingrequest/response your project to your target environment; endpoints become accessible over the network.
  • Optionally monitor logsformats, and adjust settings after deployment to ensure your APIconfiguration performsworks as expected.
  • If you need client SDKs, use the Swain CLI or the SDK Generation feature to generate SDKs in your preferred languages after deployment.
  • Whenever you update your schema or configuration, redeploy the API to apply changes; SWAIN will regenerate endpoints and documentation automatically.