quick-start-visual-studio-code-rest-api-playground
Setup a REST API Playground with Visual Studio Code
https://github.com/joshuapowell/quick-start-visual-studio-code-rest-api-playground
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.3%) to scientific vocabulary
Repository
Setup a REST API Playground with Visual Studio Code
Basic Info
- Host: GitHub
- Owner: joshuapowell
- Default Branch: main
- Size: 30.3 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Building a REST API Playground Quick Start Environment with Visual Studio Code, Jupyter, and pyenv
Abstract
This document guides developers through setting up an interactive development environment for exploring REST APIs using Microsoft Visual Studio Code, Jupyter Notebooks, and a pyenv managed Python environment. The guide provides high-level instructions for installing and configuring the software emphasizing the advantages of this approach for interactive exploratory data analysis and seamless code transfer to production applications. The setup demonstrated in this guide provides the developer with a foundation for completing advanced REST API tutorials and offers a more flexible alternative to traditional API testing tools like Postman or Swagger.
Keywords: Jupyter Notebooks, Python, Visual Studio Code, API, Development Environment
1. Setup
1.1 Visual Studio Code
Microsoft Visual Studio Code is a precompiled desktop application that is available on a variety of operating systems and is a ready-to-use IDE. A copy can be acquired for free by following the steps outlined below.
1.1.1 Setup Visual Studio Code
- Visit https://code.visualstudio.com/
- Download the version of Visual Studio Code for your operating system
- Follow any additional "setup" instructions required for your version
While Visual Studio Code is highly customizable, no special customization is required to follow along with any of my REST API playground tutorials.
1.2 Jupyter
Jupyter, Jupyter Labs, or Jupyter Notebooks is an interactive coding environment that lets you run isolated blocks of code. It is widely used in the data analytics and data science communitites. Since a lot of the work I perform is with REST APIs and intergrations, Jupyter is great for exploratory data analysis and is the perfect tool for running, rerunning, and fine tuning REST API calls and exploring the data you receive from the calls.
A copy of Jupyter can be acquired for free from the Visual Studio Code Marketplace by either visiting the Marketplace in a browser or via the "Extensions"
1.2.1 Setup Jupyter Notebooks for Visual Studio Code
- Visit the Visual Studio Code Marketplace and search for Jupyter
- Click the green install button (browser market place) or the blue install button (in-app "Extensions" tab)
- Follow on-screen instructions to complete the installation
1.3 Python
1.3.1 Setup pyenv
- Visit https://github.com/pyenv/pyenv
- Find the "Installation" section in the README. Note: The installation instructions are broken up into sections A. through E., make sure you follow all steps to create a working Python environment.
- Find Installation Step A. Locate the "Details" for your operating system and follow the instructions
- Continue following Step B. through Step E. of the Installation section
1.3.2 Install the latest version of Python
pyenv install 3.13.2
2. Getting Started
Once you've installed Visual Studio Code, Jupyter, and Python as an isolated environment, you'll be able to begin following along with any of my Jupyter Notebook tutorials.
- The first time you execute a Jupyter Notebook code block, you'll be presented with a small diaglog at the top of your Visual Studio Code window to "Select an environment". You'll want to select "Python Environments..."
- Next, you'll be presented with a list of available Python environments, you want to use the environment you installed in the above "
pyenv" step, so select one of the options under the "PyEnv Env" heading. Pay attention to the path you're selecting, the light gray text should contain a path with a~/.pyenvprefix.
3. Other options
A variety of other options exist for testing REST API calls and some even generate helpful code in a variety of languages. I prefer the Jupyter environment because it allows me to write and test code that I can transfer into an application, pipeline, or other project easily. The following options are great if your just interested in designing, documenting, and exploring a REST API.
- Swagger (open source)
- Postman or Insomnia (commerical API platforms)
- RapidAPI (standalone desktop application)
4. Conclusion
Now you should be ready to proceed with any of my REST API Playground tutorials, such as "Harnessing the Power of Mainframe REST APIS for Modernization".
5. Further Reading
- Download Visual Studio Code - Mac, Linux, Windows. (2021, November 3). https://code.visualstudio.com/download
- Welcome to Python.org. (2025, June 12). Python.org. https://www.python.org/
- pyenv/pyenv: Simple Python version management. (Accessed June 13, 2025). GitHub. https://github.com/pyenv/pyenv
- Project Jupyter. (Accessed June 13, 2025). Home. https://jupyter.org/
- Visual Studio Marketplace. (Accessed June 13, 2025). https://marketplace.visualstudio.com/vscode
- Jupyter - Visual Studio Marketplace. (Accessed June 13, 2025). https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
- API documentation & design tools for teams | Swagger. (Accessed June 13, 2025). https://swagger.io/
- The collaborative API development platform. (Accessed June 13, 2025). Insomnia. https://insomnia.rest/
- Rapid. (Accessed June 13, 2025). section-1. https://rapidapi.com/
- Setting up Visual Studio Code. (2021, November 3). https://code.visualstudio.com/docs/setup/setup-overview
6. Disclaimer
The content, including but not limited to code, text, images, audio, and/or video, hereafter referred to as "content", in this document are provided for informational and educational purposes only. TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE AUTHOR PROVIDES THIS DOCUMENT "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. In no event shall the author or their employer be liable for any claim, damages or other liability, direct or indirect, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the code and content or the use or other dealings in the code and content. Use this code and all other content at your own risk.
Third-party API Disclaimer: Additionally, the code examples in this post may interact with third-party APIs and services. The availability and functionality of these APIs are subject to change without notice. The author is not responsible for any issues arising from changes to these APIs or any downtime or limitations imposed by the service providers. You are responsible for complying with the terms of service and usage policies of any third-party APIs you use in conjunction with this code. Use this code at your own risk, and be aware of potential security implications when connecting to external services.
Product Link Disclaimer: This blog post may contain links to products or services available for purchase. These links are provided to offer readers additional information and resources. The author's opinions expressed in this post are independent and not influenced by any potential commercial relationships. No compensation is received for including these links, and their presence does not constitute an endorsement. Readers are encouraged to conduct their own research before making any purchasing decisions.
7. Copyright
Copyright © 2025 J.I. Powell. All rights reserved.
Owner
- Name: Joshua Powell
- Login: joshuapowell
- Kind: user
- Location: Pittsburgh, PA
- Company: @broadcom
- Website: https://www.joshuapowell.io/
- Twitter: joshuapowell_io
- Repositories: 3
- Profile: https://github.com/joshuapowell
Researcher and engineer with deep expertise developing data products
Citation (CITATION.cff)
cff-version: 1.2.0 message: "Powell, Joshua I. (2025, June 9). Building a REST API Playground Quick Start Environment with Visual Studio Code, Jupyter, and pyenv. United States." authors: - family-names: "Powell" given-names: "Joshua" orcid: "https://orcid.org/0000-0002-0894-2399" title: "Building a REST API Playground Quick Start Environment with Visual Studio Code, Jupyter, and pyenv" version: 1.0.0 doi: "00.0000/00000000.0000.0000000" date-released: 2025-06-09 url: "https://github.com/joshuapowell/quick-start-visual-studio-code-rest-api-playground"
GitHub Events
Total
- Push event: 8
- Create event: 1
Last Year
- Push event: 8
- Create event: 1