-
Notifications
You must be signed in to change notification settings - Fork 4
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
api platform #55
base: api
Are you sure you want to change the base?
api platform #55
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## api #55 +/- ##
============================================
- Coverage 79.50% 76.55% -2.95%
- Complexity 7265 7272 +7
============================================
Files 604 612 +8
Lines 28255 28276 +21
============================================
- Hits 22464 21648 -816
- Misses 5791 6628 +837
Flags with carried forward coverage won't be shown. Click here to find out more.
|
既存の Entity に
|
FavariteProducts, CustomerAddresses, Orders 関連のメソッドをコメントアウトすると通る |
…lder, Eccube\ORM\QueryBuilder given
ItemDataProvider:: addWhereForIdentifiersはprivateなので独自実装必要かも |
test: turn boolean PHPDOCs to bool.
|
$ composer require webonyx/graphql-php https://127.0.0.1:8000/api/graphql |
…t ApiPlatform\Core\DataProvider\PaginatorInterface or ApiPlatform\Core\DataProvider\PartialPaginatorInterface.
を回避 |
mutation は以下のような感じで動作するのを確認 mutation {
createCustomer(input: {
name01: "石"
name02: "九部"
email: "[email protected]"
password: "password"
point: "0"
secretKey: "key"
createDate: "2023-07-06T00:00:00Z"
updateDate: "2023-07-06T00:00:00Z"
propertiesFromArray: []
}) {
customer {
id
name01
name02
email
}
}
} |
$ composer req api
$ vi app/config/eccube/packages/api_platform.yaml
$ bin/console debug:config api_platform
$ mkdir -p html/template/default/bundles/
$ cp -r vendor/api-platform/core/src/Symfony/Bundle/Resources/public html/template/default/bundles/apiplatform
$ symfony server:start
$ open https://127.0.0.1:8000/api