Questions tagged [http-verbs]

HTTP Verbs represent the request methods that are recognized as part of the Hypertext Transfer Protocol. These include but are not limited to POST, GET , PUT and DELETE.

219 questions
1
vote
2 answers

using POST instead of PUT in laravel

I'm using Laravel to build and api based admin control application and I'm using Route:resource instead of regular GET and POST methods. Just realized my hosting provider DOESN'T ALLOW PUT and DELETE now I need to so now I have to use POST and GET…
Kendall
  • 5,065
  • 10
  • 45
  • 70
1
vote
1 answer

Rest endpoints structure

Supposing I have requirements: Register by email Register by social network Login by email Login by social network Logout Get my Profile Edit my Profile Get some user profile List my friends List some user friends Invite friends from social…
Sodiaan
  • 341
  • 1
  • 3
  • 10
1
vote
1 answer

Web Api GET Verb 405 Not Allowed

I have sort of the opposite issue of most other people. My failing verbs are GET and POST. PUT and DELETE are allowed for some reason. Here's my related web.config.
David Choi
  • 6,131
  • 10
  • 28
  • 28
1
vote
2 answers

webservice standard approaches for creating multiple associations

I'm looking for a recommendation for the endpoint design for a particular rest webservice use case. We have a basic API to enroll a particular user into a particular course: PUT /rest/courses/{courseId}/enroll/{studentId} This works well enough,…
Glen
  • 171
  • 1
  • 6
1
vote
1 answer

Send HTTP query with verb different from GET / POST in Codename one?

Is it possible to send HTTP queries with verbs other than GET and POST in Codename one? Like PUT and DELETE. From what I see in the documentation, it is not possible: link But I think that PUT and DELETE are so often used for REST APIs for update…
Hristo Vrigazov
  • 1,357
  • 2
  • 12
  • 20
1
vote
1 answer

How to send HTTP OPTIONS request with body using Spring rest template?

I am trying to call a RESTfull web service resource, this resource is provided by a third party, the resource is exposed with OPTIONS http verb. To integrate with the service, I should send a request with a specific body, which identities by a…
1
vote
1 answer

PATCH's Add operation vs Replace operation

Let's say I have a resource Resource1 with an attribute String attr1. I want to support the update of atrr1 by the PATCH verb. I understand that in this case, where the attribute is not an array, both the add and replace operations will do the same…
YevgenyL
  • 281
  • 3
  • 20
1
vote
3 answers

In Pyramid, can I have multiple views point to the same route/URL based on the request method?

I've inherited a project and I'm trying to make it as clean as possible. As it is now, each view just has if/else blocks that handle the different HTTP request methods (GET, POST, DELETE, etc). I would like to have a view method that can handle not…
c0lon
  • 210
  • 1
  • 9
1
vote
0 answers

Is it a good practice in general to use GET requests for a route that implies a high load on the server?

Suppose you have a web application that exposes a route, which when called executes a pretty intensive search server side before returning the data to the client. Suppose there are no side effects of the search, and the route is secured so no one…
Vee6
  • 1,527
  • 3
  • 21
  • 40
1
vote
1 answer

send a GUI update in response for UPDATE and PUT

I have a web application: webserver and SPA Front-End. The webserver has a REST API. Each entry has some stats and updated on every add, update or delete operation. The stats is calculated on the server. What I want to do is to send an update…
Vitaliy
  • 702
  • 6
  • 19
1
vote
3 answers

How are resources connected to controllers without a Model

I am writing a basic application that scrapes data. I have the following in my routes.rb. Rails.application.routes.draw do constraints subdomain: 'api' do namespace :api, path: '/' do resources :apps, :only => :show end end In controllers I…
fscore
  • 2,567
  • 7
  • 40
  • 74
1
vote
0 answers

How to deal with GET request and (not to) changing the application state?

This is a generic question about GET method. Imagine I need to store the last pagination size selected by the user: +-------------+ +-------------+ +--------------------+ +----------+ | Size change |-> | GET request | -> | Server store pref.…
gremo
  • 47,186
  • 75
  • 257
  • 421
1
vote
1 answer

What are HTTP methods (verbs) for?

I have read several sources about HTTP methods, but I still don't understand clearly the simplest thing: what are they for? Each source I've seen points out when particular methods should be used, but what does it change in practice? Is there any…
Robo Robok
  • 21,132
  • 17
  • 68
  • 126
1
vote
0 answers

A public action method was not found on controller - HEAD requests

I'm seeing lots of the following error, which I think is down to HEAD requests to an action method (from bots perhaps): A public action method 'index' was not found on controller 'MyWebsite.MyController'. at…
user806982
  • 135
  • 4
  • 16
1
vote
3 answers

MVC4 API Post verb throws http 404

I'm trying to create a REST api based on the Asp.Net MVC4 web api framework. The GET requests are working just fine. All other verbs are getting ignored by the server. It just says the following: "No action was found on the controller 'Track' that…
Feanaro
  • 922
  • 3
  • 19
  • 35