Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PEDASI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Research Software Group
PEDASI
Commits
95abef31
Commit
95abef31
authored
6 years ago
by
Steve Crouch
Browse files
Options
Downloads
Patches
Plain Diff
Add command needed to run the Python example
parent
45febe76
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/guide_developer.rst
+7
-1
7 additions, 1 deletion
docs/source/guide_developer.rst
with
7 additions
and
1 deletion
docs/source/guide_developer.rst
+
7
−
1
View file @
95abef31
...
@@ -83,7 +83,7 @@ Then we should see something like the following (although without the formatting
...
@@ -83,7 +83,7 @@ Then we should see something like the following (although without the formatting
Using Python
Using Python
~~~~~~~~~~~~
~~~~~~~~~~~~
We can duplicate the cURL request above in Python
like thi
s:
We can duplicate the cURL request above in Python
3. Creating a new Python file (e.g. *api-test.py*) with the following content
s:
.. code-block:: python
.. code-block:: python
...
@@ -97,6 +97,12 @@ We can duplicate the cURL request above in Python like this:
...
@@ -97,6 +97,12 @@ We can duplicate the cURL request above in Python like this:
response = requests.get(url, headers=headers)
response = requests.get(url, headers=headers)
print(response)
print(response)
We can run this example using:
.. code-block:: console
$ python api-test.py
Which should display the same output as we saw with cURL.
Which should display the same output as we saw with cURL.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment