PushSharp-Anywhere icon indicating copy to clipboard operation
PushSharp-Anywhere copied to clipboard

Question about why in WebAPI only use GET?

Open jimior2 opened this issue 10 years ago • 2 comments

@vmandic Hi, I have a question about to the WebAPI project, why this WebAPI only use GET method? As I know if we do register/unregister/push notification why use POST instead? Is where any limit on this portion? Why I as this because I use POST, but sometimes will called twice on POST method. but GET just working fine.

jimior2 avatar Aug 15 '16 11:08 jimior2

Hey @jimior2 thank you for looking into the project. It really does not matter on which HTTP method you will use, it is more to your preference and actual need. But I must say, that a couple of years have passed since I touched the base source of this project and it is not to be strongly followed (as it does not follow and REST principles or basic security principles).

Any type of web API will work here, as it is only the broker to the real PushSharp processor.

vmandic avatar Aug 15 '16 17:08 vmandic

@vmandic Thanks for your reply, When I'm searching related topic "PushSharp on WebAPI" I just curious about this. But your reply is very helpful for me. Many thanks.

jimior2 avatar Aug 16 '16 01:08 jimior2