5.6.2 • Published 6 years ago

jagapi v5.6.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage Status npm version Dependencies Status

JaG API (jagapi)

Greenkeeper badge

About this Fork

NOTE: This is a fork of holidayextra's jsonapi-server We have merged a lot of pending PRs on the original repo that we felt we would gain advantage from. The original project was coing a bit too slowly for our needs.

Differences from upstream

primaryKey is configurable

In upstream, keys are by default uuid and are taken from DB, if generateId = true We instead use a different property primaryKey, whose possible values are

  • uuid : Uses UUID v4 (generated from the client)
  • autoincrement : Uses AUTOINCREMENT integers

*In future there might be other types of primaryKeys if required.

relationship key type is configurable

When creating a field, you can state how to relate it

jsonApi.define({
  ... 
  attributes: {
    ... 
    author: jsonApi.Joi.one('people').uidType('uuid')
    ...
  }
})

You'd want to use our version of jsonapi-store-[*] plugins with this as the original versions will not be compatible with this

The old readme here is verbatim copy of the original project

5.6.2

6 years ago

5.6.1

6 years ago

5.6.0

6 years ago

5.5.6

6 years ago

5.5.5

6 years ago

5.5.4

6 years ago

5.5.3

6 years ago

5.5.2

6 years ago

5.5.1

6 years ago

5.5.0

6 years ago

5.4.16

6 years ago

5.4.15

6 years ago

5.4.14

6 years ago

5.4.13

6 years ago

5.4.12

6 years ago

5.4.11

6 years ago

5.4.10

6 years ago

5.4.9

6 years ago

5.4.8

6 years ago

5.4.7

6 years ago

5.4.6

6 years ago

5.4.5

6 years ago

5.4.4

6 years ago