Skip to content
Permalink
Newer
Older
100644 29 lines (25 sloc) 980 Bytes
Oct 12, 2018
1
*** Settings ***
2
Library RequestsLibrary
3
4
*** Keywords ***
Oct 27, 2018
5
Get All Entities
6
[Arguments] ${baseUrl}
7
Create Session alias=md url=${baseUrl}
8
${resp}= Get Request alias=md uri=entities
9
[Return] ${resp}
Oct 12, 2018
10
Oct 27, 2018
11
Get Entity
12
[Arguments] ${baseUrl} ${identifier}
13
Create Session alias=md url=${baseUrl}
Oct 27, 2018
14
${resp}= Get Request alias=md uri=/entities/${identifier}
15
[Return] ${resp}
Oct 12, 2018
16
Oct 27, 2018
17
Get Entity With Gzip
18
[Arguments] ${baseUrl} ${identifier}
19
Create Session alias=md url=${baseUrl}
20
&{headers}= Create Dictionary Accept-Encoding=gzip
21
${resp}= Get Request alias=md uri=entities/${identifier} headers=${headers}
22
[Return] ${resp}
23
24
Conditional Get Entity
25
[Arguments] ${baseUrl} ${identifier} ${etag}
26
&{headers}= Create Dictionary If-None-Match=${etag}
27
Create Session alias=md url=${baseUrl}
28
${resp}= Get Request alias=md uri=/entities/${identifier} headers=${headers}
Oct 27, 2018
29
[Return] ${resp}
You can’t perform that action at this time.