crud

register a generated CRUD data store

Registers a REST resource backed by an in-memory data store that automatically handles list, read, create, update and delete operations under the supplied base path.

put/mockserver/crud

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/crud
  • Auth: none declared

Request body

basePathstring required

base path the CRUD resource is served under (e.g. /api/users)

idFieldstring

name of the field used as the resource identifier

idStrategy'AUTO_INCREMENT' | 'UUID'

strategy used to generate identifiers for newly created resources

initialDataobject[]

initial records to seed the data store with

Response

CRUD resource registered

basePathstring
idStrategystring

Changes

No recorded changes to this operation across all 1 revision of this API.