Skip to content

[Bug] PathConstant doesn't included in the API endpoint URL #65

@MohammadAburihan

Description

@MohammadAburihan

Neovim Version

0.11.5

Plugin Version

latest from main

Framework

Spring Boot (Java)

Configuration

{
		"zerochae/endpoint.nvim",
		dependencies = {
			-- Choose one or more pickers (all optional):
			"nvim-telescope/telescope.nvim", -- For telescope picker
			"folke/snacks.nvim", -- For snacks picker
			"stevearc/dressing.nvim", -- Enhances vim.ui.select with telescope backend
			-- vim.ui.select picker works without dependencies
		},
		cmd = { "Endpoint", "EndpointRefresh" },
		config = function()
			require("endpoint").setup({
				-- Picker configuration
				picker = {
					type = "snacks", -- "telescope", "vim_ui_select", "snacks"
				},
			})
      vim.g.endpoint_debug = true
		end,
	},

What happened?

When endpoint takes the URLs from PathConstant file, this endpoint can't shown in the snacks with the right path

Example

@RequestMapping(PathConstants.Student.BASE_V0)
    @GetMapping // this will shown as GET / in snacks
Image

@GetMapping(PathConstants.Student.GET_ALL) // this one will not appear in snacks at all

Expected behavior

it should shown all endpoint URL even if we get the data from PathConstant file

Steps to reproduce

  1. create a PathConstant file
  2. create endpoint and let this endpoint takes the URL from the PathConstant
  3. try to find it using your plugin

Error logs

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions