autocomplete-openapi

0.1.4 • Public • Published

OpenAPI request autocomplete

A small library that provides an autocomplete for OpenAPI requests, which looks like this:

POST /collections/{collection_name}/points/scroll

{
    "filter": {
        "must_not": [
            { "key": "city", "match": { "value": "London" } },
            { "key": "color", "match": { "value": "red" } }
        ]
    }
}

Which parts are autocompleted?

  • The HTTP method (GET, POST, PUT, DELETE, PATCH)
  • The path (e.g. /collections/{collection_name}/points/scroll)
  • Keys in the request body (e.g. filter, must_not, key, match, value)

Use OpenAPI v3 schemas for autocompletion. The schemas can be provided as a JSON file.

WARNING: This project is developed to be used with Qdrant OpenAPI schemas. It may not work with other schemas. Please, feel free to open a PR or fork the project if you want to make it more generic.

Readme

Keywords

none

Package Sidebar

Install

npm i autocomplete-openapi

Weekly Downloads

143

Version

0.1.4

License

ISC

Unpacked Size

398 kB

Total Files

19

Last publish

Collaborators

  • qdrant-tech