# 404 not found error occurs while performing the api test

**URL:** <https://community.postman.com/t/404-not-found-error-occurs-while-performing-the-api-test/55412>\
**Category:** Help Hub\
**Tags:** development, request\
**Created:** [December 7, 2023, 8:28am UTC](https://community.postman.com/t/404-not-found-error-occurs-while-performing-the-api-test/55412 "2023-12-07T08:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navigation-observe19](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@navigation-observe19](https://community.postman.com/u/navigation-observe19)\
**Post date:** [December 7, 2023, 8:28am UTC](https://community.postman.com/t/404-not-found-error-occurs-while-performing-the-api-test/55412/1 "2023-12-07T08:28:13Z")

</div>

Hi,  
I’m currently doing API testing and I keep getting 404 not found errors.

```auto
@RestController
@RequestMapping(value = "/api")
public class ApiCommonController {

@RequestMapping(value = "/get/postmantest", method = {RequestMethod.GET})

    public String GetMappingTest (@RequestParam int id) {

        return "Get Mapping : " + id;
    }

```

I sent a request to an endpoint address such as [http://localhost:7771/api/get/postmantest?id=15](http://localhost:7771/api/get/postmantest?id=15) using Get, but I get a 404 not found error

I don’t think there’s a typo in the endpoint address, but I don’t know what the problem is.

I’d like some advice

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 7, 2023, 9:53am UTC](https://community.postman.com/t/404-not-found-error-occurs-while-performing-the-api-test/55412/2 "2023-12-07T09:53:17Z")

</div>

Hey @navigation-observe19 👋

Welcome to the Postman community! :postman:

This is an implementation issue with your code around the correct route of the endpoint you’re trying to hit.

It’s returning a 404 so it’s hitting the server and then responding, it just couldn’t find anything at the route to specified.

I’m not familiar with that language so I couldn’t tell you what’s actually wrong, I might be worth creating a question on Stackoverflow to seek a more code centric response.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [January 6, 2024, 9:53am UTC](https://community.postman.com/t/404-not-found-error-occurs-while-performing-the-api-test/55412/3 "2024-01-06T09:53:57Z")

</div>

Closed on January 6, 2024, 9:53am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
