Created
November 26, 2021 13:28
-
-
Save Ranjanivraman/bb05d7c06f510841cdfa40d05c660691 to your computer and use it in GitHub Desktop.
url profile service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| express | |
| getUrl from the endpoint | |
| getLocale from the country url mapper (library) | |
| get dynmodb data | |
| Dynamodb schema : | |
| Key : | |
| primary key : url | |
| sort key : store id or locale | |
| primary_data, (page Key) | |
| pagetype, | |
| colour_id, | |
| stock, | |
| status. | |
| pageType Interface | |
| Based on the pagetype return response | |
| if oos ==> return plp instead of pdp ==> We | |
| response | |
| URL express response: | |
| Class pdp extends page { | |
| //properties | |
| productId ; | |
| getPageValues { | |
| page type = 'pdp' | |
| locale = en_GB or en_US | |
| Magento id of the configurable. | |
| } | |
| } | |
| abstract class page { | |
| //properties | |
| pageType: string = pdp | pld | content | |
| pageKey : string = magento_id_value_1111 | fredhopper_id_value_missguide_1212 | |
| //methods { | |
| getpagekey(); | |
| } | |
| } | |
| PDP | |
| PLP - Standard | |
| page type = 'plp' | |
| locale = en_GB or en_US | |
| Fredhopper category string, e.g. missguideduk_clothing476uk_loungewear2082 | |
| PLP - Colour Category | |
| page type = 'plpc' | |
| locale = en_GB or en_US | |
| Fredhopper category string, e.g. "missguideduk_clothing476uk_loungewear2082" | |
| colour_id , e.g. "filter_colour209" | |
| Content page | |
| page type = 'content' | |
| locale = en_GB or en_US | |
| tbd, what do app want for content page id? | |
| Question for stephen: | |
| request | |
| url | |
| resp | |
| pagetype | |
| locale | |
| pagekey | |
| colour_id? | |
| Aggegregation api contract : Monday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment