Skip to content

Commit

Permalink
Update api.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmalza committed Jan 26, 2019
1 parent b7138e5 commit b100e6b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Using the link in the main menu "**Schema API**" it will be possible to display
.. figure:: img/postman.png
:scale: 50 %
:alt: Aida test keywords



A python GET call example for reteive the same data and manage its as a json object.

.. code-block:: python
Expand All @@ -40,4 +42,15 @@ Using the link in the main menu "**Schema API**" it will be possible to display
# extracting data in json format
data = r.json()
and with Java:

.. code-block:: java
String urlString = "http://demo.myaida.io/temp_mainapi/?username=demo&password=xxxxx....";
URL url = new URL(urlString);
URLConnection conn = url.openConnection();
InputStream is = conn.getInputStream();
// Do what you want with that stream

0 comments on commit b100e6b

Please sign in to comment.