Understanding the Request URL for Posting with Angular ngresource

Asked 2 years ago, Updated 2 years ago, 85 views

When POSTed using angular ngresource, the linked request parameters are
It will be included in the Request URL.

Example)
When {user_id:1} is combined as a parameter
Request URL:

http://hogehoge?user_id=1

Is there a way not to include the request parameter in the Request URL?

angularjs

2022-09-30 20:10

1 Answers

Please refer to the following two cases as ngresource and body parameters.
https://stackoverflow.com/questions/16203646/send-request-body-on-resource
http://www.walbrix.com/jp/blog/2014-03-angularjs-form-urlencoded.html


2022-09-30 20:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.