Skip to content
Russ Allen edited this page Jan 20, 2020 · 1 revision

Welcome to the Patentsview-Swagger wiki!

Here's what I did to create this repo:

  1. I reverse engineered a Swagger 2 object for patentsview.org's api.
  2. I downloaded Swagger UI: npm i swagger-ui-dist
  3. I edited and moved index.html to the top level of my repo
  4. I converted the Swagger 2 object to an OpenAPI/Swagger 3 object using https://lucybot-inc.github.io/api-spec-converter/
  5. I copied index.html to patentsviewswagger3.html and edited the url to point to the converted swagger object

Originally I used https://github.com/ReDoc-ly/create-openapi-repo#installation but then a year or two later I started getting emails saying there were vulnerable dependencies. To create the Swagger 2 object I started with one from a similar api, https://ped.uspto.gov/peds/, to learn how Swagger specifications work.

Clone this wiki locally