Questions tagged [http-method]

HTTP methods used to designate the appropriate action to direct a server towards a resource. GET and POST are the most widely known; PATCH and DELETE also fit in that category, among others.

355 questions
0
votes
0 answers

How to prevent swagger from showing allowed methods GET?

I realized that when I try to access one of the paths defined in my swagger 2.0 with an incorrect method (ie. GET instead of POST), I receive the following message: {"message":"Route defined in Swagger specification (/movie) but there is no defined…
vishnupriya
  • 37
  • 1
  • 6
0
votes
1 answer

Build a HttpMethod POST request with array of object from dto

I need to send an array of object as request body to POST API which looks like below. [{ "k1": "v1", "k2": "v2", "k3": 1 }] my dto file looks like below public class Request { @JsonProperty("k1") private String k1; …
aki
  • 175
  • 1
  • 3
  • 14
0
votes
2 answers

How make a request in the browser to a DELETE http method in ASP.NET (.NET FRAMEWORK)

In laravel or some express.js libs add middleware to check if a field is given called _Method which will override the actual http method of the http request on arrival of the server, because the browser only supports POST and GET. Does ASP.NET (.NET…
0
votes
0 answers

Proof of Possession for JWT

I came across some reading around the concept of Proof of Possession(PoP) in case of JWT. I wanted to know if we have any sample APIs implemented around this.
Abhiram S
  • 94
  • 1
  • 12
0
votes
0 answers

Swagger error in implementation webdav methods

Swagger generate error: An unhandled exception has occurred while executing the request. System.Collections.Generic.KeyNotFoundException: The given key 'PROPFIND' was not present in the dictionary. My implementation this…
0
votes
1 answer

Delete request by Restlet with payload

Does Restlet API support to incorporate and trigger the DELETE http request with the payload (If support which version of restlet api). According to RFC7231, All http methods support the payload. If possible can post segment of code for this…
Murugesh
  • 29
  • 1
  • 4
0
votes
1 answer

How to request api delete action in Angular

So in my angular project, I've API call in my workspace.service.ts file and I was able to create others request like getWorkspace and createWorkspace, etc.. but not delete request. I'm new to API Call or requesting backend stuff but I think that I…
user9436741
0
votes
0 answers

Problem about .htaccess in request method

I'm testing my api. It success on GET and POST method. But another method such as PUT/DELETE/PATCH, the apache server reponse a 301 redirect pernamently to the same url use GET method. This is my .htaccess file content is: RewriteEngine on …
huy tran tan
  • 23
  • 1
  • 5
0
votes
1 answer

Tools in Java/Spring to interact with a Restful API

I'm building a Java application that needs to access an external Restful API. I need to perform POST, GET and PUT on this API. In PHP I used curl and in C# I used HTTPClient. Which tool should I use in Java/Spring? I'm new in Java and I'm kind…
Diego Alves
  • 2,462
  • 3
  • 32
  • 65
0
votes
0 answers

Is it possible to insert record with PUT/PATCH http method?

I want to insert record with PUT/PATCH method in database. I don't want to use POST Method. Is it possible to do so?
0
votes
1 answer

Get HTTP Method from a joinPoint

I need to get the http method like POST/PATCH/GET/etc from a joinPoint in an aspect. @Before("isRestController()") public void handlePost(JoinPoint point) { // do something to get for example "POST" to use below handle(arg,…
Dendin
  • 163
  • 1
  • 6
  • 19
0
votes
1 answer

REST API - appropriate method and route to have child change what its parent resource is

Let's say I have 2 models, Location and Item, that correspond to 2 tables in a database, represented in c# below. Is something like a PATCH request to /items/{itemId} appropriate to change the location id of an item to refer to a different location…
nav
  • 125
  • 11
0
votes
0 answers

Why is my URL changing when I try to fetch Weather Data from OpenWeatherMap API?

I know, I have structured the model correctly based on the JSON data given. And composed the URLRequest correctly, I think, 90% positive. But for some reason, when I run my app and try to make a request it changes my url, to be specific... Right…
0
votes
1 answer

Setting up Spek test for http methods using Kotlin?

How do I spin up a spek test using kotlin to test whether or not an HTTP method post has been called? Whats tripping me out is i'm having trouble mocking up the context. I'd like to pass in a method other then HttpMethod.POST to fire off the else…
sisternight438
  • 153
  • 1
  • 1
  • 12
0
votes
1 answer

Error in SQL syntax after sending post request to web page form in python

I need to post some json data here: https://online.superpoistenie.sk/pzp/kalkulacka/ the webpage will proceed data and show results Basicly you insert some info and the webpage will generate all possible prices from different brands for your…
adamNTili
  • 1
  • 2