Developers · Scripts → API

Write the logic. Ship the API. Skip the service.

Script-2-API turns a Groovy or JavaScript snippet into a governed REST endpoint. The runtime sandboxes execution, applies platform controls, and gives you an OpenAPI spec for free.

Script-2-API (Groovy / JS) — For developers use case overview from Apinizer.
For developers · Script-2-API (Groovy / JS)

The problem

Not every endpoint deserves a microservice.

A transform here, a calculation there, a small enrichment over a third-party API — none of these need a Docker image, a Helm chart, or a six-week onboarding to the platform. Apinizer's Script-2-API lets engineers drop a Groovy or JavaScript snippet into a governed runtime: same auth, same audit, same rate limits, none of the boilerplate.

Capabilities

What Apinizer does here

Groovy or JavaScript

Pick the language that fits the team. Both run inside a sandboxed runtime with the same lifecycle hooks.

Governed by default

Every Script-2-API endpoint inherits auth, rate limits, audit, and encryption — the same controls every other endpoint has.

OpenAPI generated

Declare parameters and response shape; OpenAPI ships automatically. Partners discover scripts the way they discover REST APIs.

Sandboxed runtime

Scripts run inside guardrails — no arbitrary filesystem, no unscoped network. Resources controlled by the platform.

Outbound to anything

Scripts can call upstream APIs, databases (via connectors), or message queues — through the same governed channels the gateway uses.

Audit captures the script

Every change to the script writes to audit. Auditor sees the version that ran, who deployed it, and the request that triggered it.

Use cases

In production, this looks like…

  • Banking

    Istanbul bank ships 60 enrichment scripts in three weeks

    Each script enriches a core-banking call with risk-score or KYC data. No new services; no container images; same audit posture as the legacy stack.

    60 endpoints, 0 containers

  • Insurance

    Frankfurt insurer wraps actuarial scripts as APIs

    Groovy actuarial calculators that used to live in a spreadsheet are now governed endpoints. Auditor signs off because audit covers every call.

  • Public sector

    Stockholm agency exposes simple lookups as JS endpoints

    Junior engineers ship a new endpoint in one afternoon; the platform team only reviews policy, not boilerplate.

  • Retail

    Madrid retailer transforms partner payloads with JS scripts

    Each partner has slightly different field names. Script maps them; the downstream service sees a clean shape.

  • Telecom

    Amsterdam carrier composes 3 backend calls into one customer view

    Groovy script fans out to billing, network, and CRM; assembles the response. No new microservice; same auth and audit.

  • Media

    Milan publisher A/B-tests a recommendation logic with scripts

    Two scripts behind one endpoint; routing splits 50/50. New logic wins; promotion is one policy change.

  • Energy

    Prague utility transforms SCADA payloads on the gateway

    Tag mappings, unit conversions, and enrichment ship as scripts. SCADA team keeps its protocol; consumers get a clean API.

  • Government

    Baku ministry handles partner-specific quirks via scripts

    Each partner integration has its own normalization script. New partner onboarded in two days; previous version preserved in audit.

Code into endpoints

Write the logic. Skip the service.

A 30-minute walkthrough — drop a script, declare params, ship — on a Kubernetes of your choice.