-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandbox.html
65 lines (57 loc) · 3.09 KB
/
sandbox.html
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
<html>
<head>
<link rel="stylesheet" href="css/style.css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="charset" content="UTF-8" />
<title>FasT&T - EPCIS Sandbox</title>
</head>
<body>
<menu>
<a href="index.html">Home</a>
<a href="v1_2.html">EPCIS 1.2</a>
<a href="v2_0.html">EPCIS 2.0</a>
<a href="sandbox.html">Sandbox</a>
<a href="contact.html">Contact</a>
</menu>
<h1>FasT&T - EPCIS Sandbox</h1>
<section id="introduction">
<h2>Introduction</h2>
<p>The Sandbox is a full EPCIS repository that allows you to use and test your EPCIS capture/queries. It's free and doesn't need any registeration or setup, so start to use it right now!</p>
<p>The base URL of this sandbox is <a href="https://fastnt-dev.azurewebsites.net/">https://fastnt-dev.azurewebsites.net/</a>. There is a <a href="https://www.postman.com/fastnt-epcis/workspace/fast-t-epcis/overview">Postman Workspace</a> awailable that allow you to easily make queries on this repository.</p>
</section>
<section id="howto">
<h2>How to use</h2>
<p>A <a href="https://raw.githubusercontent.com/FasTnT/epcis-ef-core/main/Documents/EPCIS%201.2.postman_collection.json">Postman collection</a> and a <a href="https://raw.githubusercontent.com/FasTnT/epcis-ef-core/main/Documents/EPCIS%201.2%20queries-soapui-project.xml">SoapUI project</a> can be found on the GitHub repository.</p>
<h3>Security</h3>
<p>Every request <i>must</i> include a Basic Authorization header. If the header is empty or malformed the API will return a <code>401 - Unauthorized</code> response.</p>
<p>Each EPCIS event captured is linked to a hash value of the specified username/password, and is visible using only the same authentication values.</p>
<h3>Capture events</h3>
<pre>POST https://fastnt-dev.azurewebsites.net/v1_2/capture
Authorization: Basic username:password
Content-Type:text/xml
<epcis:EPCISDocument
xmlns:epcis="urn:epcglobal:epcis:xsd:1"
schemaVersion="1.2"
creationDate="2018-06-12T06:31:32Z">
...
</epcis:EPCISDocument></pre>
<h3>Perform Queries</h3>
<pre>POST https://fastnt-dev-api.azurewebsites.net/v1_2/query.svc
Authorization: Basic username:password
Content-Type:application/xml
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:epcglobal:epcis-query:xsd:1">
<soapenv:Body>
...
</soapenv:Body>
</soapenv:Envelope></pre>
</section>
<section id="restrictions">
<h2>Restrictions</h2>
<p>As this EPCIS server is publicly available, the results will only contain the events that were captured by the exact same username/password values.</p>
<p>There is no guarantee on the duration the data will be kept on the server. Automatic as well as manual cleanup might occur without any warning.</p>
<p><strong>Note:</strong> it means in no case that the data is secured. Anyone that makes a request with the same authentication will see the data you send. You must not send any confidential or secret data to this server.</p>
</section>
</body>
</html>