get

GET /foo/:name/:type
Returns a collection

Request

NameTypeLocation
nameStringpath
typeStringpath
startIndexIntegerquery
floatNumberquery
booleanBooleanquery
dateString (date)query
datetimeString (date-time)query
argsEntryquery

Response

Status-CodeType
200EntryCollection

create

POST /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadEntryCreatebody

Response

Status-CodeType
201EntryMessage
400EntryMessage
500EntryMessage

update

PUT /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadMap (EntryUpdate)body

Response

Status-CodeType
200Map (EntryMessage)
400EntryMessage
500Map (EntryMessage)

delete

DELETE /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath

Response

Status-CodeType

patch

PATCH /foo/:name/:type

Request

NameTypeLocation
nameStringpath
typeStringpath
payloadArray (EntryPatch)body

Response

Status-CodeType
200Array (EntryMessage)
400EntryMessage
500Array (EntryMessage)

EntryCollection

{
  "entry": Array (Entry),
}
FieldDescription
entryArray (Entry)

Entry

{
  "id": Integer,
  "userId": Integer,
  "title": String,
  "date": String (date-time),
}
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)

EntryMessage

{
  "success": Boolean,
  "message": String,
}
FieldDescription
successBoolean
messageString

EntryCreate

{
  "id": Integer,
  "userId": Integer,
  "title": String,
  "date": String (date-time),
}
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)

EntryUpdate

{
  "id": Integer,
  "userId": Integer,
  "title": String,
  "date": String (date-time),
}
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)

EntryDelete

{
  "id": Integer,
  "userId": Integer,
  "title": String,
  "date": String (date-time),
}
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)

EntryPatch

{
  "id": Integer,
  "userId": Integer,
  "title": String,
  "date": String (date-time),
}
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)