-
Notifications
You must be signed in to change notification settings - Fork 0
/
.http
104 lines (65 loc) · 2.03 KB
/
.http
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@scheme = http
@hostname = localhost
@port = 8080
@host = {{hostname}}:{{port}}
@service = odata/v4/ExternalCatalogService
@baseurl = {{scheme}}://{{host}}/{{service}}
# simple get
GET {{baseurl}}/PointOfInterests HTTP/1.1
###
# single entity
GET {{baseurl}}/PointOfInterests('EX16') HTTP/1.1
###
# single entity with select
GET {{baseurl}}/PointOfInterests('EX1')?$select=country,category HTTP/1.1
###
# primitive property
GET {{baseurl}}/PointOfInterests('EX20')/country HTTP/1.1
###
# primitive property raw value
GET {{baseurl}}/PointOfInterests('EX7')/country/$value HTTP/1.1
###
# count
GET {{baseurl}}/PointOfInterests/$count HTTP/1.1
###
# inline count
GET {{baseurl}}/PointOfInterests?$count=true HTTP/1.1
###
# count found entities
GET {{baseurl}}/PointOfInterests/$count?$filter=country ne 'FR' HTTP/1.1
###
# select
GET {{baseurl}}/PointOfInterests?$select=country,category HTTP/1.1
###
# simple filter
GET {{baseurl}}/PointOfInterests?$filter=ID eq 'EX3' or ID eq 'EX4' HTTP/1.1
###
# in filter
GET {{baseurl}}/PointOfInterests?$filter=ID in ('EX3', 'EX4') HTTP/1.1
###
# order by
GET {{baseurl}}/PointOfInterests?$orderby=subcategory desc,category asc HTTP/1.1
###
# valid search
GET {{baseurl}}/PointOfInterests?$search=12&$filter=country eq 'FR' HTTP/1.1
###
# invalid search
GET {{baseurl}}/PointOfInterests?$search=not 13 and 14&$filter=country eq 'FR' HTTP/1.1
###
# valid JPQL function: tolower
GET {{baseurl}}/PointOfInterests?$filter=tolower(name) eq 'EXAMPLE 19' HTTP/1.1
###
# invalid JPQL function: starts
GET {{baseurl}}/PointOfInterests?$filter=startswith(name,'asdf') HTTP/1.1
###
# invalid JPQL function: contains
GET {{baseurl}}/PointOfInterests?$filter=contains(name,'f') HTTP/1.1
###
# invalid OData operation: concat
GET {{baseurl}}/PointOfInterests?$filter=concat(ID,name) eq 'EX1 Example1' HTTP/1.1
###
# invalid JPQL function: matches
GET {{baseurl}}/PointOfInterests?$filter=matchesPattern(name,'%5EA.*e$') HTTP/1.1
###
#
GET {{baseurl}}/PointOfInterests?$apply= HTTP/1.1