Skip to content

Commit 0908027

Browse files
committed
Merge remote-tracking branch 'remotes/dev/2.0' into 2.0
2 parents 02249bd + 5bd9dab commit 0908027

File tree

75 files changed

+10196
-639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+10196
-639
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_script:
2727
- composer require --no-update --dev "phpunit/phpunit:5.7.*"
2828
- composer require --no-update --dev "squizlabs/php_codesniffer:2.7.*"
2929
- composer require --no-update --dev "phpmd/phpmd:2.5.*"
30-
- composer global show fxp/composer-asset-plugin 1.2.2 || composer global require fxp/composer-asset-plugin:1.2.2
30+
- composer global require fxp/composer-asset-plugin
3131
- travis_wait composer update --prefer-dist --optimize-autoloader --no-interaction --no-suggest --prefer-stable
3232
- set +e; DIFF=$(git diff --name-only --diff-filter=ACMR $TRAVIS_COMMIT_RANGE | grep -e ".*\.php$"); set -e;
3333

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
api:
22
entities:
3-
Oro\Bundle\AccountBundle\Entity\Account: ~
3+
Oro\Bundle\AccountBundle\Entity\Account:
4+
documentation_resource: '@OroAccountBundle/Resources/doc/api/account.md'
+379
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,379 @@
1+
# Oro\Bundle\AccountBundle\Entity\Account
2+
3+
## ACTIONS
4+
5+
### get
6+
7+
Retrieve a specific account record.
8+
9+
{@inheritdoc}
10+
11+
### get_list
12+
13+
Retrieve a collection of account records.
14+
15+
{@inheritdoc}
16+
17+
### create
18+
19+
Create a new account record.
20+
The created record is returned in the response.
21+
22+
{@inheritdoc}
23+
24+
{@request:json_api}
25+
Example:
26+
27+
`</api/accounts>`
28+
29+
```JSON
30+
{
31+
"data":{
32+
"type":"accounts",
33+
"attributes":{
34+
"extend_description":null,
35+
"name":"Gartner management group"
36+
},
37+
"relationships":{
38+
"owner":{
39+
"data":{
40+
"type":"users",
41+
"id":"44"
42+
}
43+
},
44+
"contacts":{
45+
"data":[
46+
{
47+
"type":"contacts",
48+
"id":"1"
49+
},
50+
{
51+
"type":"contacts",
52+
"id":"3"
53+
},
54+
{
55+
"type":"contacts",
56+
"id":"22"
57+
}
58+
]
59+
},
60+
"defaultContact":{
61+
"data":{
62+
"type":"contacts",
63+
"id":"1"
64+
}
65+
},
66+
"organization":{
67+
"data":{
68+
"type":"organizations",
69+
"id":"1"
70+
}
71+
}
72+
}
73+
}
74+
}
75+
```
76+
{@/request}
77+
78+
### update
79+
80+
Edit a specific account record.
81+
The updated record is returned in the response.
82+
83+
{@inheritdoc}
84+
85+
{@request:json_api}
86+
Example:
87+
88+
`</api/accounts/51>`
89+
90+
```JSON
91+
{
92+
"data":{
93+
"type":"accounts",
94+
"id":"51",
95+
"attributes":{
96+
"extend_description":null,
97+
"name":"Life Plan Counselling"
98+
},
99+
"relationships":{
100+
"owner":{
101+
"data":{
102+
"type":"users",
103+
"id":"44"
104+
}
105+
},
106+
"contacts":{
107+
"data":[
108+
{
109+
"type":"contacts",
110+
"id":"1"
111+
},
112+
{
113+
"type":"contacts",
114+
"id":"3"
115+
},
116+
{
117+
"type":"contacts",
118+
"id":"22"
119+
}
120+
]
121+
},
122+
"defaultContact":{
123+
"data":{
124+
"type":"contacts",
125+
"id":"1"
126+
}
127+
},
128+
"organization":{
129+
"data":{
130+
"type":"organizations",
131+
"id":"1"
132+
}
133+
}
134+
}
135+
}
136+
}
137+
```
138+
{@/request}
139+
140+
### delete
141+
142+
Delete a specific account record.
143+
144+
{@inheritdoc}
145+
146+
### delete_list
147+
148+
Delete a collection of account records.
149+
The list of records that will be deleted, could be limited by filters.
150+
151+
{@inheritdoc}
152+
153+
## FIELDS
154+
155+
### name
156+
157+
#### create
158+
159+
{@inheritdoc}
160+
161+
**The required field**
162+
163+
#### update
164+
165+
{@inheritdoc}
166+
167+
**Please note:**
168+
169+
*This field is **required** and must remain defined.*
170+
171+
### id
172+
173+
#### update
174+
175+
{@inheritdoc}
176+
177+
**The required field**
178+
179+
## SUBRESOURCES
180+
181+
### contacts
182+
183+
#### get_subresource
184+
185+
Retrieve contact records assigned to a specific account record.
186+
187+
#### get_relationship
188+
189+
Retrieve contact IDs assigned to a specific account record.
190+
191+
#### add_relationship
192+
193+
Set contacts records for a specific account record.
194+
195+
{@request:json_api}
196+
Example:
197+
198+
`</api/accounts/1/relationships/contacts>`
199+
200+
```JSON
201+
{
202+
"data": [
203+
{
204+
"type": "contacts",
205+
"id": "1"
206+
},
207+
{
208+
"type": "contacts",
209+
"id": "3"
210+
},
211+
{
212+
"type": "contacts",
213+
"id": "22"
214+
}
215+
]
216+
}
217+
```
218+
{@/request}
219+
220+
#### update_relationship
221+
222+
Replace the list of contacts assigned to a specific account record.
223+
224+
{@request:json_api}
225+
Example:
226+
227+
`</api/accounts/1/relationships/contacts>`
228+
229+
```JSON
230+
{
231+
"data": [
232+
{
233+
"type": "contacts",
234+
"id": "1"
235+
},
236+
{
237+
"type": "contacts",
238+
"id": "3"
239+
},
240+
{
241+
"type": "contacts",
242+
"id": "22"
243+
}
244+
]
245+
}
246+
```
247+
{@/request}
248+
249+
#### delete_relationship
250+
251+
Remove contact records from a specific account record.
252+
253+
### defaultContact
254+
255+
#### get_subresource
256+
257+
Retrieve the contact record that is default for a specific account record.
258+
259+
#### get_relationship
260+
261+
Retrieve the ID of the default contact assigned to a specific account record.
262+
263+
#### update_relationship
264+
265+
Replace the default contact record assigned to a specific account record.
266+
267+
{@request:json_api}
268+
Example:
269+
270+
`</api/accounts/1/relationships/defaultContact>`
271+
272+
```JSON
273+
{
274+
"data": {
275+
"type": "contacts",
276+
"id": "1"
277+
}
278+
}
279+
```
280+
{@/request}
281+
282+
### organization
283+
284+
#### get_subresource
285+
286+
Retrieve the record of the organization a specific account belongs to.
287+
288+
#### get_relationship
289+
290+
Retrieve the ID of the organization record that a specific account record belongs to.
291+
292+
#### update_relationship
293+
294+
Replace the organization a specific account belongs to.
295+
296+
{@request:json_api}
297+
Example:
298+
299+
`</api/accounts/1/relationships/organization>`
300+
301+
```JSON
302+
{
303+
"data": {
304+
"type": "organizations",
305+
"id": "1"
306+
}
307+
}
308+
```
309+
{@/request}
310+
311+
### owner
312+
313+
#### get_subresource
314+
315+
Retrieve the record of the user who is the owner of a specific lead record.
316+
317+
#### get_relationship
318+
319+
Retrieve the ID of a user who is the owner of a specific account record.
320+
321+
#### update_relationship
322+
323+
Replace the owner of a specific account record.
324+
325+
{@request:json_api}
326+
Example:
327+
328+
`</api/accounts/1/relationships/owner>`
329+
330+
```JSON
331+
{
332+
"data": {
333+
"type": "users",
334+
"id": "44"
335+
}
336+
}
337+
```
338+
{@/request}
339+
340+
### referredBy
341+
342+
#### get_subresource
343+
344+
Retrieve the account records that refer to a specific account record.
345+
346+
**Please note:**
347+
348+
*This parameter is currently unavailable via the OroCRM interface.*
349+
350+
#### get_relationship
351+
352+
Retrieve the IDs of account records that refer to a specific account record.
353+
354+
**Please note:**
355+
356+
*This parameter is currently unavailable via the OroCRM interface.*
357+
358+
#### update_relationship
359+
360+
Replace the account records that refer to a specific account record.
361+
362+
**Please note:**
363+
364+
*This parameter is currently unavailable via the OroCRM interface.*
365+
366+
{@request:json_api}
367+
Example:
368+
369+
`</api/accounts/1/relationships/referredBy>`
370+
371+
```JSON
372+
{
373+
"data": {
374+
"type": "accounts",
375+
"id": "2"
376+
}
377+
}
378+
```
379+
{@/request}

0 commit comments

Comments
 (0)