-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.yaml
87 lines (82 loc) · 2.59 KB
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "1.0" # version of the OpenMFE spec
name: Hotel Offers
icon: ./icon.svg
tag: hotel-offers
url:
frontend: ../main.js
prerender: __BACKEND_URL__/prerender
semantic: __BACKEND_URL__/semantic
publisher:
name: Alexander Günsche
email: research@lxg.de
description: This is a microfrontend for displaying a hotel. The microfrontend shows the title, an image and a description. The microfrontend contains an “add to wishlist” button, which when clicked will fire the `hotel-offers.add-to-wishlist` event.
documentation: documentation.md
attributes:
- name: region
description: The Giata ID of the region for which hotels should be displayed.
required: true
schema:
type: string
pattern: "^[a-z0-9]+$"
events:
- name: hotel-offers.add-to-wishlist
description: Indicates that the user wants to add the hotel to the wishlist.
schema:
type: object
properties:
id:
type: string
description: The ID of the hotel.
pattern: ^[a-z0-9]+$
name:
type: string
description: The name of the hotel.
image:
type: string
description: An URL to a preview image of the hotel.
format: uri
- name: openmfe.analytics
tracking: hotel-offers.preview-opened
description: Indicates that the preview of a hotel image was opened.
schema:
type: object
properties:
id:
type: string
description: The ID of the hotel.
pattern: ^[a-z0-9]+$
name:
type: string
description: The name of the hotel.
image:
type: string
description: An URL to a preview image of the hotel.
format: uri
- name: openmfe.analytics
tracking: hotel-offers.preview-closed
description: Indicates that the preview of a hotel image was closed.
schema:
type: object
properties:
id:
type: string
description: The ID of the hotel.
pattern: ^[a-z0-9]+$
name:
type: string
description: The name of the hotel.
image:
type: string
description: An URL to a preview image of the hotel.
format: uri
examples:
- description: Shows a selection of hotels on the island of Mallorca.
attributes:
region: "1197"
- description: Shows a selection of hotels on the island of Crete.
attributes:
region: "1177"
- description: Shows a selection of hotels on the island of Tenerife.
attributes:
region: "1643"
repository: https://gitlab.com/openmfe/demo/microfrontend.git