Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Stoplight Coding Challenge - HTTP request maker for OAS 2.0 specs

Notifications You must be signed in to change notification settings

stoplightio/js-coding-challenge

Repository files navigation

Stoplight Coding Challenge - OAS 2.0 Request Maker

Create a chrome extension that displays an HTTP request maker for any given OAS 2.0 file.

Instructions

  1. Create a Github repository called "Stoplight Coding Challenge" and invite me: https://github.com/lottamus
  2. Clone this repository and push the code to your new repository.
  3. Install all the dependencies: yarn
  4. Load the extension in Chrome
  5. Open the todos-api.json file (located in the root of this directory) in Chrome

The TODOs apikey is 123.

Requirements

  • Uses React and a state management library such as MobX or Redux.

  • Displays an interactive UI for creating HTTP requests to each operation in an OAS 2.0 file.

  • Displays the response after each HTTP request.

  • A UI/UX that you're proud of.

Bonus (not required)

Project Structure

  • src: TypeScript source files
  • public: Chrome Extension manifest, icon, HTML
  • dist: The built Chrome Extension

Development build

Runs webpack in watch mode, generates bundles with source mapping

yarn start

Production build

Runs webpack and generates the minified bundles

yarn build

Load the extension in Chrome

  • Build the extension
  • Open Chrome and go to chrome://extensions
  • Toggle Developer mode in the top right
  • Click Load unpacked extension... in the top left
  • Load the dist directory

Debugging

  • Clicking on the Stoplight icon will open the extension's popup window
  • Right click and open DevTools
  • In DevTools, you can press Ctrl+R to reload the extension

Useful Links

About

Stoplight Coding Challenge - HTTP request maker for OAS 2.0 specs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published