Pim-community-dev: APIλ₯Ό 톡해 μ‹λ³„μž/μ½”λ“œλ‘œ μ œν’ˆ/λͺ¨λΈμ„ 쿼리할 수 있음

에 λ§Œλ“  2020λ…„ 08μ›” 26일  Β·  4μ½”λ©˜νŠΈ  Β·  좜처: akeneo/pim-community-dev

친ꡬλ₯Ό κ΅¬ν•©λ‹ˆλ‹€ :p

μ•ˆλ…•ν•˜μ„Έμš”, μ•„μΌ€λ„€μ˜€μž…λ‹ˆλ‹€.

λͺ¨λ‘ 잘 λ˜μ‹œκΈΈ λ°”λžλ‹ˆλ‹€ :)

Akeneo APIμ—μ„œ κ²€μƒ‰ν•˜κ³  싢은 μ œν’ˆ 및 μ œν’ˆ λͺ¨λΈ λͺ©λ‘μ΄ μžˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” κ·Έλ“€μ˜ μ½”λ“œ/μ‹λ³„μžλ§Œ μ•Œκ³  μžˆμŠ΅λ‹ˆλ‹€. 그리고 GET /api/rest/v1/products λ˜λŠ” /api/rest/v1/product-models μ—”λ“œν¬μΈνŠΈλ₯Ό 톡해 직접 κ°€μ Έμ˜¬ 수 μ—†μŠ΅λ‹ˆλ‹€.

μ‹€μ œλ‘œ μ΄λŸ¬ν•œ λμ μ—μ„œλŠ” κΈ°λ³Έ μš”κ΅¬ 사항인 identifier λ˜λŠ” code μ—μ„œ 검색할 수 μ—†μŠ΅λ‹ˆλ‹€. λŒ€μ‹  단일 끝점(` /api/rest/v1/products/{identifier} )을 μ‚¬μš©ν•΄μ•Ό ν•˜λ―€λ‘œ μ„œλ²„μ˜ λΆ€ν•˜κ°€ μ¦κ°€ν•©λ‹ˆλ‹€.

이 κ°œμ„  사항이 λ‘œλ“œλ§΅μ— μžˆμŠ΅λ‹ˆκΉŒ?

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

https://api.akeneo.com/documentation/filter.html#filter -on-product-properties의 λͺ¨λ“  속성을 λͺ…μ‹œμ μœΌλ‘œ λ‚˜μ—΄ν•˜λŠ” 것이 쒋을 것이라고 μƒκ°ν•©λ‹ˆλ‹€.

μ œν’ˆ λͺ¨λΈλ„ λ§ˆμ°¬κ°€μ§€μž…λ‹ˆλ‹€.

μ–΄μ¨Œλ“  도움 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€ :)

λͺ¨λ“  4 λŒ“κΈ€

μ•ˆλ…•ν•˜μ„Έμš” μ€„λ¦¬μ•™λ‹˜

ν˜„μž¬ λ‹€μŒκ³Ό 같이 identifier 으둜 필터링할 수 μžˆμŠ΅λ‹ˆλ‹€. /api/rest/v1/products?search={"identifier":[{"operator":"IN","value":["1111111171", "13620748"]}]} μ œν’ˆ λͺ¨λΈμ— λŒ€ν•΄ 동일

_ https://api.akeneo.com/documentation/filter.html#filter -on-product-properties_

μ•„ κ°μ‚¬ν•©λ‹ˆλ‹€.
μ œν’ˆ λͺ¨λΈμ—μ„œ μ‹λ³„μž 속성은 "μ‹λ³„μž"κ°€ μ•„λ‹ˆλΌ "μ½”λ“œ"라고 ν•©λ‹ˆλ‹€. κ·Έλž˜μ„œ λ‚˜λŠ” μ‹œλ„ν–ˆλ‹€

        $productModels = $this->apiClientFactory->getClient()->getProductModelApi()->all(
            50,
            ['search' => ['code' => [['operator' => 'IN', 'value' => $akeneoProductModelIds]]]]
        );

μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μ˜€ν•΄μ˜ μ†Œμ§€κ°€ μžˆμŠ΅λ‹ˆλ‹€.

https://api.akeneo.com/documentation/filter.html#filter -on-product-properties의 λͺ¨λ“  속성을 λͺ…μ‹œμ μœΌλ‘œ λ‚˜μ—΄ν•˜λŠ” 것이 쒋을 것이라고 μƒκ°ν•©λ‹ˆλ‹€.

μ œν’ˆ λͺ¨λΈλ„ λ§ˆμ°¬κ°€μ§€μž…λ‹ˆλ‹€.

μ–΄μ¨Œλ“  도움 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€ :)

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰