For example:
Http:localhost:8080/api/customer/{id}
If I post in postman instead of Id a parameter it will work fine ,
But in html I’m asking the user for an input and than I want to pass the input in the path instead of the Id
Is it possible ? Only spring boot and html .

Thanks in advance

Recommended Answers

I'm not quite sure what you're trying to accomplish, but would using something like Swagger work?

Swagger is a JSON file that essentially documents your API, and then there are a handful of different Swagger tools that let you feed in that JSON file, and then they spit out documentation, …

Jump to Post

All 4 Replies

I'm not quite sure what you're trying to accomplish, but would using something like Swagger work?

Swagger is a JSON file that essentially documents your API, and then there are a handful of different Swagger tools that let you feed in that JSON file, and then they spit out documentation, example code in various languages, etc.

For example, the DaniWeb Connect API swagger file looks like this: https://www.daniweb.com/connect/developers/swagger

By passing that file in, you can then use the Swagger UI here: https://petstore.swagger.io/?url=https://www.daniweb.com/connect/developers/swagger

Notice that it lets you pass parameters and generate responses on the fly.

Is this something like what you're trying to accomplish?

commented: Action=http://localhost:8080/api/test/{age} I get an error . So I ask how can we pass that path in action Attribute in html . +0

Sarahle, please reply to the topic instead of commenting on the post. :)

Thank you . and im sorry :) im new here and ive got confused! thanks.
any wasy . for this topic i understood my error .
i passed a request pram insted of pathvarible and it worked fine .. thank you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.