ZWeb.API.Flat.CreditProvidersController (Portico/Z v0.1.0)

API endpoint for CRUD functions on ZSchemas.Flat.CreditProvider data through Z.Flat

Link to this section Summary

Functions

POST /api/flat/credit_providers

DELETE /api/flat/credit_providers/:portico_id

GET /api/flat/credit_providers

Link to this section Functions

Link to this function

create(conn, map)

POST /api/flat/credit_providers

Create/update credit providers.

Expects an credit_providers key, containing a JSON array where each element is a structure corresponding to ZSchemas.Flat.CreditProvider.

Will update in the case that a portico_id is sent, matching an existing CreditProvider. Otherwise, will create a new CreditProvider.

Link to this function

delete(conn, map)

DELETE /api/flat/credit_providers/:portico_id

Destroy a credit provider, by portico_id

Link to this function

index(conn, params)

GET /api/flat/credit_providers

List credit providers

Parameters

Any parameters will be passed directly to Z.Repo.get_all_by/3