Skip to content

API Generation

API generation is optional. In the Negroni Blueprint wizard, you can choose REST, SOAP, GraphQL, Database Schema, or Data Models outputs before generating the Martini package or publishing to a Martini runtime. When exporting a Martini package directly from a manifest, Negroni uses the API settings saved in the manifest's Configure panel.

Supported API Types

API Type Description
REST API Default. Generates RESTful endpoints using standard HTTP methods.
SOAP API Generates SOAP-compatible endpoints.
GraphQL API Generates a GraphQL schema with query and mutation operations.

Default Endpoints Per Entity

For each entity, Negroni generates five standard endpoints:

Operation Description
Create Creates a new record.
Update Modifies an existing record.
Get Single Retrieves a single record by identifier.
Get All Retrieves all records, with optional pagination.
Delete Removes a record.

Additional endpoints are generated for entities with relationships (join queries).

Configuring the API Type

API output can be selected in the Negroni Blueprint wizard:

  1. Click Negroni Blueprint Negroni Blueprint in the toolbar.
  2. Choose Publish to Martini Designer Online or Martini Server Runtime or Export as a Martini package.
  3. Select one or more API types: REST, SOAP, or GraphQL.
  4. Optionally select Database Schema or Data Models as the generated model output.
  5. Complete the database connection, SQL configuration, package, and summary steps.
  6. Click Generate.

See Manifest Configuration for full configuration details on the saved settings used by direct manifest export.