ForestAdmin/toolbelt

View on GitHub
src/serializers/environment.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const JSONAPISerializer = require('jsonapi-serializer').Serializer;

module.exports = new JSONAPISerializer('environments', {
  attributes: [
    'name',
    'apiEndpoint',
    'project',
    'isActive',
    'type',
    'lianaName',
    'lianaVersion',
    'project',
    'secretKey',
    'currentBranchId',
    'areRolesDisabled',
  ],
  project: {
    ref: 'id',
    included: false,
  },
});