Git Product home page Git Product logo

post.nvim's Introduction

Note

This project is currently under development and I am working towards making it available for public use as soon as possible.

post.nvim

post.nvim is a powerful plugin for Neovim aimed at streamlining the process of testing REST APIs directly within the editor. It provides a seamless interface for sending HTTP requests, inspecting responses, and managing test suites, all without leaving your coding environment.

Key Features:

  • Interactive Request Builder: Construct HTTP requests effortlessly using an interactive interface within Neovim. With intuitive autocomplete and syntax highlighting, crafting requests becomes a breeze.
  • Multiple Request Methods: Support for various HTTP methods including GET, POST, PUT, DELETE, PATCH, and more. Quickly switch between methods to simulate different API interactions.
  • Flexible Authentication: Easily authenticate your requests with support for various authentication methods such as Basic Auth, OAuth, API keys, and bearer tokens. Manage and save authentication credentials securely.
  • Dynamic Variables: Seamlessly inject dynamic variables into your requests for parameterization. Variables can be generated from responses, user input, or environment variables, allowing for dynamic and flexible testing scenarios.
  • Response Inspection: View HTTP responses directly within Neovim, complete with syntax-highlighted JSON or XML formatting for easy readability. Navigate through response headers and body effortlessly to debug and analyze API responses.
  • Test Suites and Assertions: Organize your API tests into test suites and define assertions to verify expected responses. post.nvim supports a wide range of assertion methods, allowing for comprehensive testing of API endpoints.
  • Environment Management: Define multiple environments (e.g., development, staging, production) and switch between them seamlessly. Environment variables can be scoped globally or within specific test suites for fine-grained control.
  • Extensibility: post.nvim is highly extensible, allowing users to customize and extend its functionality through Lua scripting. Integrate with other plugins or extend existing features to suit your workflow.

To Dos:

  • Use treesitter to highlight request and responses (JSON, XML).
  • Define JSON schema to be used by the editor for request creation so that autocomplete will work.
  • Use Curl lua module to make http calls to various end points.
  • Allow configuration for proxy and certificate validation exceptions.
  • Persistent session object stored on file system, with configuration to delete the session object for any request.
  • Execution of a whole test suite (JSON).
  • Visual selection of request json and execution.
  • JSON Path based variable extraction and injection into templatized request.

post.nvim's People

Contributors

nikhilsahoo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.