Registry / devops / any2api-generator-rest

any2api-generator-rest

JSON →
library0.2.4jsnpmunverified

REST API implementation generator for any2api, version 0.2.4. This package is part of the any2api ecosystem and generates REST API implementations from API specifications. It is legacy and not maintained anymore. Users should check any2api.org for recent developments. The package has no active releases since 2016.

npm install any2api-generator-rest
INSTALL
IMPORT
SIG · ANY2API-GENERATOR-
A
any2api-generator-rest
devopsjavascriptv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import any2apiGeneratorRest from 'any2api-generator-rest'
const any2apiGeneratorRest = require('any2api-generator-rest')
ESM-only package; CommonJS require will fail.
Generator
import { Generator } from 'any2api-generator-rest'
Named export for the generator class.
generate
import { generate } from 'any2api-generator-rest'
const { generate } = require('any2api-generator-rest')
Function to generate REST API implementation.

Demonstrates generating REST API implementation from an OpenAPI spec using the generate function.

import { generate } from 'any2api-generator-rest'; const apiSpec = { openapi: '3.0.0', info: { title: 'Test API', version: '1.0.0' }, paths: { '/hello': { get: { responses: { '200': { description: 'OK' } } } } } }; generate(apiSpec, { outDir: './output' }).then(() => { console.log('Generated REST API implementation'); }).catch(err => { console.error('Generation failed:', err); });
Debug
Known issues
deprecatedThis package is legacy and not maintained.
fix
Migrate to the latest any2api tools from any2api.org.
affects: *
gotchaOnly works with any2api CLI; standalone usage may fail.
fix
Install any2api CLI and use 'any2api install generator any2api-generator-rest'.
affects: *
breakingESM-only package; CommonJS require() returns undefined.
fix
Use import syntax or dynamic import().
affects: >=0.2.0
Errors
Common errors & fixes
Cannot find module 'any2api-generator-rest'
Package not installed or used without any2api CLI context.
fix
Install via 'npm install any2api-generator-rest' and import in your project.
TypeError: any2apiGeneratorRest is not a function
Default import/require but the package exports named exports only.
fix
Use named imports like import { generate } from 'any2api-generator-rest'.
Upgrade
Version history
0.2.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
any2api-generator-rest — npm install any2api-generator-rest · libregistry