-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm2l.raml
81 lines (79 loc) · 2.26 KB
/
m2l.raml
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
#%RAML 1.0
title: More2Life API
baseUri: https://m2l-server.herokuapp.com/api
mediaType: application/json
types:
FeedItem:
type: object
properties:
identifier:
type: string
description: The unique identifier of the item
title:
type: string
description: The title / name of the item
description:
type: string
description: The description of the content in the item
index:
type: integer
description: The position of the item in the feed. Used for sorting and paging
Video:
type: FeedItem
properties:
previewImageUrl:
description: The url to the image for the frame of the video to show as a preview
type: string
videoUrl:
description: The url to the video stream
type: string
publishDate:
description: The date the video was published
type: string
views:
description: The number of times the video was viewed
type: integer
Event:
type: FeedItem
properties:
coordinates:
description: The GPS coordinates to show the event on a map
type: string
address:
description: The street address of the location
type: string
Listing:
type: FeedItem
properties:
Product:
type: Product
description: The product featured in the feed Listing
previewImageUrl:
type: string
description: The url to the image for the product to show as a preview
Product:
description: A product to be sold in the store
properties:
identifier:
type: string
description: The unique identifier of the product
price:
type: number
format: float
description: The price of the item
/feed:
description: Get a feed of content
displayName: Feed
get:
queryParameters:
count?: integer
index?: integer
headers:
Accept-Language:
description: The language the application is running in. Titles, descriptions, and any other user facing string should come down from the server translated in that language.
responses:
200:
body:
application/json:
type: FeedItem[]
example: !include /examples/feed-example.json