Added basic API endpoints (#258)
This commit is contained in:
18
config/serializer/App/Entity.Activity.yml
Normal file
18
config/serializer/App/Entity.Activity.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
App\Entity\Activity:
|
||||
exclusion_policy: All
|
||||
custom_accessor_order: [id, name, comment, visible, project_id]
|
||||
properties:
|
||||
id:
|
||||
include: true
|
||||
name:
|
||||
include: true
|
||||
comment:
|
||||
include: true
|
||||
visible:
|
||||
include: true
|
||||
virtual_properties:
|
||||
getProjectId:
|
||||
name: project_id
|
||||
serialized_name: project_id
|
||||
exp: "object.getProject() === null ? null : object.getProject().getId()"
|
||||
type: integer
|
||||
35
config/serializer/App/Entity.Customer.yml
Normal file
35
config/serializer/App/Entity.Customer.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
App\Entity\Customer:
|
||||
exclusion_policy: All
|
||||
properties:
|
||||
id:
|
||||
include: true
|
||||
name:
|
||||
include: true
|
||||
number:
|
||||
include: true
|
||||
comment:
|
||||
include: true
|
||||
visible:
|
||||
include: true
|
||||
company:
|
||||
include: true
|
||||
contact:
|
||||
include: true
|
||||
address:
|
||||
include: true
|
||||
country:
|
||||
include: true
|
||||
currency:
|
||||
include: true
|
||||
phone:
|
||||
include: true
|
||||
fax:
|
||||
include: true
|
||||
mobile:
|
||||
include: true
|
||||
mail:
|
||||
include: true
|
||||
homepage:
|
||||
include: true
|
||||
timezone:
|
||||
include: true
|
||||
22
config/serializer/App/Entity.Project.yml
Normal file
22
config/serializer/App/Entity.Project.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
App\Entity\Project:
|
||||
exclusion_policy: All
|
||||
custom_accessor_order: [id, name, comment, visible, budget, orderNumber, customer_id]
|
||||
properties:
|
||||
id:
|
||||
include: true
|
||||
name:
|
||||
include: true
|
||||
comment:
|
||||
include: true
|
||||
visible:
|
||||
include: true
|
||||
budget:
|
||||
include: true
|
||||
orderNumber:
|
||||
include: true
|
||||
virtual_properties:
|
||||
getCustomerId:
|
||||
name: customer_id
|
||||
serialized_name: customer_id
|
||||
exp: "object.getCustomer() === null ? null : object.getCustomer().getId()"
|
||||
type: integer
|
||||
11
config/serializer/App/Entity.User.yml
Normal file
11
config/serializer/App/Entity.User.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
App\Entity\User:
|
||||
exclusion_policy: All
|
||||
properties:
|
||||
id:
|
||||
include: true
|
||||
alias:
|
||||
include: true
|
||||
title:
|
||||
include: true
|
||||
avatar:
|
||||
include: true
|
||||
Reference in New Issue
Block a user