Skip to content

Commit 6476ac9

Browse files
authored
Merge pull request #1045 from magento-okapis/MAGETWO-65444-Api-Annotations
- MAGETWO-65444 Add @api annotation to modules owned by Okapis - MAGETWO-66882 [Clone] Allowing Web API listing to be public - 2.2
2 parents ecf775e + 0f2becb commit 6476ac9

File tree

149 files changed

+431
-141
lines changed

Some content is hidden

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

149 files changed

+431
-141
lines changed

app/code/Magento/Authorization/Model/CompositeUserContext.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
use Magento\Framework\ObjectManager\Helper\Composite as CompositeHelper;
1010

1111
/**
12-
* Composite user context (implements composite pattern).
12+
* User context.
13+
*
14+
* This class is not implementing standard composite pattern and will not invoke all of its children.
15+
* Instead, it will try to find the first suitable child and return its result.
16+
*
17+
* @api
1318
*/
1419
class CompositeUserContext implements \Magento\Authorization\Model\UserContextInterface
1520
{

app/code/Magento/Authorization/Model/ResourceModel/Permissions/Collection.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@
88
/**
99
* Admin permissions collection
1010
*
11-
* @author Magento Core Team <[email protected]>
11+
* @deprecated
12+
* @see \Magento\Authorization\Model\ResourceModel\Rules\Collection
1213
*/
13-
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
14+
class Collection extends \Magento\Authorization\Model\ResourceModel\Rules\Collection
1415
{
15-
/**
16-
* Initialize resource
17-
*
18-
* @return void
19-
*/
20-
protected function _construct()
21-
{
22-
$this->_init(
23-
\Magento\Authorization\Model\Rules::class,
24-
\Magento\Authorization\Model\ResourceModel\Rules::class
25-
);
26-
}
2716
}

app/code/Magento/Authorization/Model/ResourceModel/Role/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Admin role collection
12+
*
13+
* @api
1214
*/
1315
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1416
{

app/code/Magento/Authorization/Model/ResourceModel/Rules/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Rules collection
1010
*
11-
* @author Magento Core Team <[email protected]>
11+
* @api
1212
*/
1313
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1414
{

app/code/Magento/Authorization/Model/Role.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @method \Magento\Authorization\Model\Role setUserType(string $value)
2525
* @method string getRoleName()
2626
* @method \Magento\Authorization\Model\Role setRoleName(string $value)
27+
* @api
2728
*/
2829
class Role extends \Magento\Framework\Model\AbstractModel
2930
{

app/code/Magento/Authorization/Model/Rules.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @method \Magento\Authorization\Model\Rules setAssertId(int $value)
2222
* @method string getPermission()
2323
* @method \Magento\Authorization\Model\Rules setPermission(string $value)
24+
* @api
2425
*/
2526
class Rules extends \Magento\Framework\Model\AbstractModel
2627
{
@@ -30,14 +31,14 @@ class Rules extends \Magento\Framework\Model\AbstractModel
3031
* @param \Magento\Framework\Model\Context $context
3132
* @param \Magento\Framework\Registry $registry
3233
* @param \Magento\Authorization\Model\ResourceModel\Rules $resource
33-
* @param \Magento\Authorization\Model\ResourceModel\Permissions\Collection $resourceCollection
34+
* @param \Magento\Authorization\Model\ResourceModel\Rules\Collection $resourceCollection
3435
* @param array $data
3536
*/
3637
public function __construct(
3738
\Magento\Framework\Model\Context $context,
3839
\Magento\Framework\Registry $registry,
3940
\Magento\Authorization\Model\ResourceModel\Rules $resource,
40-
\Magento\Authorization\Model\ResourceModel\Permissions\Collection $resourceCollection,
41+
\Magento\Authorization\Model\ResourceModel\Rules\Collection $resourceCollection,
4142
array $data = []
4243
) {
4344
parent::__construct($context, $registry, $resource, $resourceCollection, $data);

app/code/Magento/Authorization/Model/UserContextInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* Interface for current user identification.
11+
*
12+
* @api
1113
*/
1214
interface UserContextInterface
1315
{

app/code/Magento/Captcha/Block/Adminhtml/Captcha/DefaultCaptcha.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\Captcha\Block\Adminhtml\Captcha;
8+
79
/**
810
* Captcha block for adminhtml area
9-
*
10-
* @author Magento Core Team <[email protected]>
1111
*/
12-
namespace Magento\Captcha\Block\Adminhtml\Captcha;
13-
1412
class DefaultCaptcha extends \Magento\Captcha\Block\Captcha\DefaultCaptcha
1513
{
1614
/**

app/code/Magento/Captcha/Block/Captcha/DefaultCaptcha.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
/**
99
* Captcha block
10-
*
11-
* @author Magento Core Team <[email protected]>
1210
*/
1311
class DefaultCaptcha extends \Magento\Framework\View\Element\Template
1412
{

app/code/Magento/Captcha/Helper/Data.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Captcha image model
14+
*
15+
* @api
1416
*/
1517
class Data extends \Magento\Framework\App\Helper\AbstractHelper
1618
{

app/code/Magento/Captcha/Model/DefaultModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Implementation of \Zend\Captcha\Image
1010
*
11-
* @author Magento Core Team <[email protected]>
11+
* @api
1212
*/
1313
class DefaultModel extends \Zend\Captcha\Image implements \Magento\Captcha\Model\CaptchaInterface
1414
{

app/code/Magento/Captcha/view/frontend/web/captcha.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ define([
99
], function ($) {
1010
'use strict';
1111

12+
/**
13+
* @api
14+
*/
1215
$.widget('mage.captcha', {
1316
options: {
1417
refreshClass: 'refreshing',
@@ -26,7 +29,7 @@ define([
2629
},
2730

2831
/**
29-
* Method triggeres an AJAX request to refresh the CAPTCHA image
32+
* Method triggers an AJAX request to refresh the CAPTCHA image
3033
*/
3134
refresh: function () {
3235
var imageLoader = this.options.imageLoader;

app/code/Magento/Catalog/Model/Product/Exception.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\Exception\LocalizedException;
99

10+
/**
11+
* @api
12+
*/
1013
class Exception extends LocalizedException
1114
{
1215
}

app/code/Magento/CatalogRule/Model/Flag.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Flag stores status about availability not applied catalog price rules
9-
*
10-
* @author Magento Core Team <[email protected]>
11-
*/
127
namespace Magento\CatalogRule\Model;
138

9+
/**
10+
* Flag indicates that some rules have changed but changes have not been applied yet.
11+
*/
1412
class Flag extends \Magento\Framework\Flag
1513
{
1614
/**

app/code/Magento/CatalogRule/Model/Indexer/IndexBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
/**
1818
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
19+
* @api
1920
*/
2021
class IndexBuilder
2122
{

app/code/Magento/CatalogSearch/Model/Indexer/Scope/IndexTableNotExistException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
/**
1212
* Exception which represents situation where temporary index table should be used somewhere,
1313
* but it does not exist in a database
14+
*
15+
* @api
1416
*/
1517
class IndexTableNotExistException extends LocalizedException
1618
{

app/code/Magento/CatalogSearch/Model/Indexer/Scope/UnknownStateException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Exception for situation where used state which is not defined in configuration
13+
*
14+
* @api
1315
*/
1416
class UnknownStateException extends LocalizedException
1517
{

app/code/Magento/Checkout/Exception.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Checkout;
77

8+
/**
9+
* @api
10+
*/
811
class Exception extends \Magento\Framework\Exception\LocalizedException
912
{
1013
}

app/code/Magento/Eav/Model/Entity/Attribute/AttributeGroupAlreadyExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Framework\Exception\AlreadyExistsException;
99

1010
/**
11-
* Class AttributeGroupAlreadyExistsException
11+
* @api
1212
*/
1313
class AttributeGroupAlreadyExistsException extends AlreadyExistsException
1414
{

app/code/Magento/Eav/Model/Entity/Attribute/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* EAV entity attribute exception
1010
*
11-
* @author Magento Core Team <[email protected]>
11+
* @api
1212
*/
1313
class Exception extends \Magento\Framework\Exception\LocalizedException
1414
{

app/code/Magento/Integration/Model/AdminTokenService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717

1818
/**
1919
* Class to handle token generation for Admins
20-
*
2120
*/
2221
class AdminTokenService implements \Magento\Integration\Api\AdminTokenServiceInterface
2322
{
2423
/**
2524
* Token Model
26-
*a
25+
*
2726
* @var TokenModelFactory
2827
*/
2928
private $tokenModelFactory;

app/code/Magento/Integration/Model/Integration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @method \string getUpdatedAt()
2727
* @method Integration setUpdatedAt(\string $createdAt)
2828
* @method \Magento\Integration\Model\ResourceModel\Integration getResource()
29+
* @api
2930
*/
3031
class Integration extends \Magento\Framework\Model\AbstractModel
3132
{

app/code/Magento/Integration/Model/Message/RecreatedIntegration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
/**
1616
* Class RecreatedIntegration to display message when a config-based integration needs to be reactivated
17-
*
1817
*/
1918
class RecreatedIntegration implements \Magento\Framework\Notification\MessageInterface
2019
{

app/code/Magento/Integration/Model/Oauth/Token.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* @method int getAuthorized()
4242
* @method Token setAuthorized() setAuthorized(int $authorized)
4343
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
44+
* @api
4445
*/
4546
class Token extends \Magento\Framework\Model\AbstractModel
4647
{

app/code/Magento/Integration/view/adminhtml/web/js/integration.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/**
7+
* jQuery plugin is added.
8+
*
9+
* @api
10+
*/
611
define([
712
'jquery',
813
'Magento_Ui/js/modal/alert',

app/code/Magento/MediaStorage/Helper/File/Storage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\MediaStorage\Helper\File;
8+
79
/**
810
* File storage helper
911
*
10-
* @author Magento Core Team <[email protected]>
12+
* @api
1113
*/
12-
namespace Magento\MediaStorage\Helper\File;
13-
1414
class Storage extends \Magento\Framework\App\Helper\AbstractHelper
1515
{
1616
/**

app/code/Magento/MediaStorage/Helper/File/Storage/Database.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Database saving file helper
9-
*
10-
* @author Magento Core Team <[email protected]>
11-
*/
127
namespace Magento\MediaStorage\Helper\File\Storage;
138

149
use Magento\Framework\App\Filesystem\DirectoryList;
1510
use Magento\Framework\Filesystem;
1611

12+
/**
13+
* Database saving file helper
14+
*
15+
* @api
16+
*/
1717
class Database extends \Magento\Framework\App\Helper\AbstractHelper
1818
{
1919
/**

app/code/Magento/MediaStorage/Model/File/Storage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
/**
1616
* Class Storage
17+
*
1718
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
19+
* @api
1820
*/
1921
class Storage extends AbstractModel
2022
{

app/code/Magento/MediaStorage/Model/File/Storage/Database.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* Class Database
10+
*
11+
* @api
1012
*/
1113
class Database extends \Magento\MediaStorage\Model\File\Storage\Database\AbstractDatabase
1214
{

app/code/Magento/MediaStorage/Model/File/Storage/File.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* Class File
10+
*
11+
* @api
1012
*/
1113
class File
1214
{

app/code/Magento/MediaStorage/Model/File/Uploader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\MediaStorage\Model\File;
8+
79
/**
810
* Core file uploader model
911
*
10-
* @author Magento Core Team <[email protected]>
12+
* @api
1113
*/
12-
namespace Magento\MediaStorage\Model\File;
13-
1414
class Uploader extends \Magento\Framework\File\Uploader
1515
{
1616
/**

app/code/Magento/Msrp/Pricing/Price/MsrpPriceInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* MSRP price interface
13+
*
14+
* @api
1315
*/
1416
interface MsrpPriceInterface
1517
{

app/code/Magento/Msrp/view/frontend/web/js/view/checkout/minicart/subtotal/totals.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
6+
/**
7+
* @api
8+
*/
9+
510
define([
611
'Magento_Tax/js/view/checkout/minicart/subtotal/totals',
712
'underscore'

0 commit comments

Comments
 (0)