Skip to content

test #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 81 commits into from
Oct 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
7852f10
GraphQL Query support (#1358)
alanpoulain Oct 6, 2017
328b42d
Fix missing service when no Varnish URL is defined
julienfalque Oct 7, 2017
ab8d6cc
[PropertyFilter] Fix whitelist comparison (#1379)
antograssiot Oct 9, 2017
5470ef1
Remove wrong doc
norkunas Oct 9, 2017
b78b242
Merge pull request #1402 from norkunas/fix-doc
dunglas Oct 9, 2017
e2e3e56
Swagger subcollection documentation issue (#1395)
reminec Oct 9, 2017
9352351
Make the requirements configurable
Oct 9, 2017
874cfaf
Provide a better exception message and type
Oct 9, 2017
724b18d
Merge pull request #1405 from greg0ire/better_invalid_format_message
sroze Oct 10, 2017
78b2bc1
Merge pull request #1406 from greg0ire/configurable_requirements
sroze Oct 10, 2017
5b7125d
Merge pull request #1400 from julienfalque/fix-http-cache-missing-ser…
sroze Oct 10, 2017
2d1df59
Bump branch alias to 2.2.x-dev
Oct 10, 2017
6d70782
Merge pull request #1409 from greg0ire/bump_branch_alias
Simperfit Oct 10, 2017
1de4fa8
Merge branch '2.0' into 2.1
dunglas Oct 11, 2017
f6b0404
Merge branch '2.1'
dunglas Oct 11, 2017
623f6a3
Fix tests
dunglas Oct 11, 2017
5789b56
Merge pull request #1414 from dunglas/fix-tests
dunglas Oct 11, 2017
66f3abb
Reuse PriorityTaggedServiceTrait from symfony
norkunas Oct 11, 2017
19671b8
Merge pull request #1417 from norkunas/patch-2
dunglas Oct 11, 2017
9a3c095
Improve payload support and remove duplicate code in ConstraintViolat…
dunglas Oct 11, 2017
35f7399
Filter Annotation implementation
May 16, 2017
5367c31
Throw on abstract data providers / filters
norkunas Oct 11, 2017
0589ae9
Merge pull request #1117 from soyuka/feat/1033
soyuka Oct 12, 2017
85bce5e
Remove an unused var
dunglas Oct 12, 2017
f3c4bba
Merge pull request #1424 from dunglas/remove-unused
dunglas Oct 12, 2017
fcc1e73
Remove useless badges
dunglas Oct 12, 2017
ee0d5d5
Enable the coverage
meyerbaptiste Oct 12, 2017
39aab7d
Merge pull request #1426 from meyerbaptiste/enable_coverage
meyerbaptiste Oct 12, 2017
6d1c91d
Fix some quality issues
dunglas Oct 12, 2017
0087cdd
Add job to test upstream libs deprecations
Oct 12, 2017
87f9b82
Merge pull request #1428 from dunglas/quality
dunglas Oct 12, 2017
afd7ae7
Merge pull request #1427 from dunglas/remove-badges
dunglas Oct 12, 2017
98d0ce8
Merge pull request #1418 from norkunas/patch-3
dunglas Oct 12, 2017
5cfaf4e
Merge pull request #1430 from greg0ire/test_upstream_deprecations
dunglas Oct 12, 2017
d14b960
Add job to test upstream libs deprecations
Oct 12, 2017
1a3428a
Fix missing cache tag on empty collections
julienfalque Oct 12, 2017
d315b9f
Merge pull request #1431 from meyerbaptiste/test_upstream_deprecations
dunglas Oct 13, 2017
808b5d3
Allow plain IDs with `allow_plain_identifiers`
Sep 12, 2017
318d3b3
Merge pull request #1365 from soyuka/fix/api-platform/249
soyuka Oct 13, 2017
ea20e6e
Merge pull request #1432 from julienfalque/empty-collection-cache-tags
meyerbaptiste Oct 13, 2017
d88168f
Fix indentation for GraphQL features.
meyerbaptiste Oct 13, 2017
c423bc0
Merge pull request #1434 from meyerbaptiste/fix_behat_graphql_indenta…
meyerbaptiste Oct 13, 2017
e7c87c6
Merge branch '2.1'
meyerbaptiste Oct 13, 2017
04aca32
Merge pull request #1435 from meyerbaptiste/merge_2.1
soyuka Oct 13, 2017
4b3d1ab
Add JSON API basic support (#785, #1036, #1175)
meyerbaptiste Oct 13, 2017
a11598b
Clean Behat tests
meyerbaptiste Oct 16, 2017
c43cf90
Fix tags addition with an empty value
meyerbaptiste Oct 18, 2017
a367183
Merge pull request #1439 from meyerbaptiste/fix_behat_2.0
soyuka Oct 19, 2017
3630296
Document swagger-specific description options
Oct 18, 2017
a99eabc
Fix PHPUnit tests
meyerbaptiste Oct 17, 2017
7e2488e
Merge pull request #1444 from meyerbaptiste/fix_add_tag_empty_value
meyerbaptiste Oct 19, 2017
96db7e2
Merge pull request #1441 from meyerbaptiste/fix_phpunit_2.0
meyerbaptiste Oct 19, 2017
11cb9c6
Fix missing return statement
meyerbaptiste Oct 17, 2017
e8cdef1
Merge pull request #1443 from greg0ire/improve_comments
soyuka Oct 19, 2017
b8d54d8
Support & compatibility for PHP7.2
meyerbaptiste Oct 19, 2017
6a5c9ab
Merge pull request #1440 from meyerbaptiste/fix_cs_missing_return_sta…
dunglas Oct 19, 2017
6ed91c3
Merge pull request #1445 from meyerbaptiste/php72
dunglas Oct 19, 2017
d0f8335
Merge branch '2.0'
meyerbaptiste Oct 19, 2017
d536e7e
Merge pull request #1446 from meyerbaptiste/merge_2.0
meyerbaptiste Oct 19, 2017
d5447b3
Merge branch '2.1'
meyerbaptiste Oct 19, 2017
62ffeae
Merge pull request #1447 from meyerbaptiste/merge_2.1
meyerbaptiste Oct 19, 2017
9ba21ef
Add feature to update swagger context for properties
mab05k Oct 20, 2017
c07b770
Merge pull request #1433 from mab05k/mab05k/feature/property-swagger-…
meyerbaptiste Oct 20, 2017
ad14ac0
Generator compat improvements (#1429)
greg0ire Oct 20, 2017
fce4b8c
Add support for resource names without namespace
phansys Oct 20, 2017
62383ba
Merge pull request #1451 from phansys/resourcenames_without_ns
dunglas Oct 21, 2017
86277f8
[SF 4.0] Make actions explicitly public
GuilhemN Oct 22, 2017
f72883d
Merge pull request #1453 from GuilhemN/fix
dunglas Oct 23, 2017
c25eba9
Merge branch '2.1'
dunglas Oct 23, 2017
3c78205
Allow phpdocumentor/reflection-docblock 4
dunglas Oct 23, 2017
f2cdc06
Merge pull request #1454 from dunglas/docblock
dunglas Oct 23, 2017
5439c36
Merge branch '2.1'
dunglas Oct 23, 2017
7f906fe
fix hydra documentation normalizer with subresources
Oct 13, 2017
5e8bc8b
Merge pull request #1436 from soyuka/fix/hydra-documentation-normaliz…
dunglas Oct 23, 2017
9c17299
Create a base collection normalizer
meyerbaptiste Oct 23, 2017
eb319da
Fix request auto-runner
dunglas Oct 23, 2017
78a3d6d
Merge pull request #1455 from meyerbaptiste/refactor_collection_norma…
dunglas Oct 23, 2017
e2ef9c6
Merge pull request #1456 from api-platform/fix-swaggerui
dunglas Oct 23, 2017
fb5c1ef
Update the changelog
dunglas Oct 23, 2017
da8849c
Merge branch '2.1'
dunglas Oct 23, 2017
abf7e9c
Update changelog
dunglas Oct 23, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ return PhpCsFixer\Config::create()
'throw',
'use',
],
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
Expand Down
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ cache:
- $HOME/.composer/cache
- $HOME/.npm

env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak_vendors

matrix:
include:
- php: '7.0'
- php: '7.1'
- php: '7.2'
env: coverage=1 lint=1
- php: '7.1'
- php: '7.2'
env: deps='low'
- php: '7.2'
env: SYMFONY_DEPRECATIONS_HELPER=0
allow_failures:
env: SYMFONY_DEPRECATIONS_HELPER=0

before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
Expand All @@ -23,11 +32,11 @@ before_install:
- if [[ $coverage = 1 ]]; then mkdir -p build/logs build/cov; fi
- if [[ $coverage = 1 ]]; then wget https://phar.phpunit.de/phpcov.phar; fi
- if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar; fi
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.4.0/php-cs-fixer.phar; fi
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.7.1/php-cs-fixer.phar; fi
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi

install:
- if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^4.0.1'; fi
- if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^5.2.2'; fi
- if [[ ! $deps ]]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi
- if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi

Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## 2.2.0

* Add GraphQL support
* Add JSONAPI support
* Add a new `@ApiFilter` annotation to directly configure filters from resource classes
* Add a partial paginator that prevents `COUNT()` SQL queries
* Add an option to serialize Validator's payloads (e.g. error levels)
* Add support for generators in data providers
* Add a new `allow_plain_identifiers` option to allow using plain IDs as identifier instead of IRIs
* Add support for resource names without namespace
* Automatically enable FOSUser support if the bundle is installed
* Add an `AbstractCollectionNormalizer` to help supporting custom formats
* Deprecate NelmioApiDocBundle 2 support (upgrade to v3, it has native API Platform support)

## 2.1.2

* PHP 7.2 compatibility
* Symfony 4 compatibility
* Fix the Swagger UI documentation for specific routes (the API request wasn't executed automatically anymore)
* Add a missing cache tag on empty collections
* Fix a missing service when no Varnish URL is defined
* Fix the whitelist comparison in the property filer
* Fix some bugs regarding subresources in the Swagger and Hydra normalizers
* Make route requirements configurable
* Make possible to configure the Swagger context for properties
* Better exception messages when there is a content negotiation error
* Use the `PriorityTaggedServiceTrait` provided by Symfony instead of a custom implementation
* Test upstream libs deprecations
* Various quality fixes and tests cleanup

## 2.1.1

* Fix path generators
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ It natively supports popular open formats including [JSON for Linked Data (JSON-
Build a working and fully-featured CRUD API in minutes. Leverage the awesome features of the tool to develop complex and
high performance API-first projects. Extend or override everything you want.

[![JSON-LD enabled](http://json-ld.org/images/json-ld-button-88.png)](http://json-ld.org)
[![Join the chat at https://gitter.im/api-platform/api-platform](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/api-platform/api-platform?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/api-platform/core.svg?branch=master)](https://travis-ci.org/api-platform/core)
[![Build status](https://ci.appveyor.com/api/projects/status/grwuyprts3wdqx5l?svg=true)](https://ci.appveyor.com/project/dunglas/dunglasapibundle)
[![Coverage Status](https://coveralls.io/repos/github/api-platform/core/badge.svg)](https://coveralls.io/github/api-platform/core)
Expand Down
4 changes: 4 additions & 0 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ default:
default:
contexts:
- 'FeatureContext': { doctrine: '@doctrine' }
- 'GraphqlContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext': { doctrine: '@doctrine', jsonApiSchemaFile: 'tests/Fixtures/JsonSchema/jsonapi.json' }
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
- 'Behatch\Context\JsonContext'
Expand All @@ -28,9 +30,11 @@ coverage:
default:
contexts:
- 'FeatureContext': { doctrine: '@doctrine' }
- 'GraphqlContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext': { doctrine: '@doctrine', jsonApiSchemaFile: 'tests/Fixtures/JsonSchema/jsonapi.json' }
- 'CoverageContext'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
"doctrine/annotations": "^1.2",
"friendsofsymfony/user-bundle": "^2.0",
"guzzlehttp/guzzle": "^6.0",
"justinrainbow/json-schema": "^1.5",
"nelmio/api-doc-bundle": "^2.11.2",
"php-mock/php-mock-phpunit": "^1.1",
"phpdocumentor/reflection-docblock": "^3.0",
"phpdocumentor/type-resolver": "^0.2",
"phpunit/phpunit": "^5.6.8",
"php-mock/php-mock-phpunit": "^2.0",
"phpdocumentor/reflection-docblock": "^3.0 || ^4.0",
"phpdocumentor/type-resolver": "^0.2.1 || ^0.3 || 0.4",
"phpunit/phpunit": "^6.1",
"psr/log": "^1.0",
"sensio/framework-extra-bundle": "^3.0.11 || ^4.0",
"symfony/asset": "^3.3 || ^4.0",
Expand All @@ -50,7 +51,7 @@
"symfony/console": "^3.3 || ^4.0",
"symfony/debug": "^2.8 || ^3.0 || ^4.0",
"symfony/dependency-injection": "^3.3 || ^4.0",
"symfony/doctrine-bridge": "^2.8 || ^3.0 || ^4.0",
"symfony/doctrine-bridge": "^2.8.12 || ^3.0 || ^4.0",
"symfony/event-dispatcher": "^3.3 || ^4.0",
"symfony/expression-language": "^2.8 || ^3.0 || ^4.0",
"symfony/finder": "^3.3 || ^4.0",
Expand All @@ -62,7 +63,8 @@
"symfony/security-bundle": "^3.0 || ^4.0",
"symfony/twig-bundle": "^3.1 || ^4.0",
"symfony/validator": "^3.3 || ^4.0",
"symfony/yaml": "^3.3 || ^4.0"
"symfony/yaml": "^3.3 || ^4.0",
"webonyx/graphql-php": "^0.10.2"
},
"conflict": {
"symfony/dependency-injection": "<3.3"
Expand All @@ -76,7 +78,8 @@
"symfony/expression-language": "To use authorization features.",
"symfony/config": "To load XML configuration files.",
"symfony/security": "To use authorization features.",
"symfony/twig-bundle": "To use the Swagger UI integration."
"symfony/twig-bundle": "To use the Swagger UI integration.",
"webonyx/graphql-php": "To support GraphQL."
},
"autoload": {
"psr-4": { "ApiPlatform\\Core\\": "src/" }
Expand All @@ -86,7 +89,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev"
"dev-master": "2.2.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion features/bootstrap/CoverageContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Kévin Dunglas <[email protected]>
* @copyright Adapted from https://gist.github.com/eliecharra/9c8b3ba57998b50e14a6
*/
class CoverageContext implements Context
final class CoverageContext implements Context
{
/**
* @var CodeCoverage
Expand Down
Loading