Linked Questions
26 questions linked to/from How to pass url arguments (query string) to a HTTP request on Angular?
8
votes
2
answers
42k
views
passing parameters in http GET using angular 2 [duplicate]
How do i send parameters in GET call using angular 2
I tried in the following way, but getting some error saying,
Argument of type '{ params: URLSearchParams; }' is not assignable to parameter of ...
0
votes
1
answer
3k
views
Angular4 http get with URL parameter [duplicate]
I want to invoke a REST API in Angular4 containing URL parameters. The template looks like that:
http://localhost:61448/api/Product/language/{languauge}/name/{name}
This is a working example:
http:/...
77
votes
5
answers
297k
views
Angular, Http GET with parameter?
I dont know how to make an API call to such a method:
[HttpGet]
[ActionName("GetSupport")]
public HttpResponseMessage GetSupport(int projectid)
Because it is GET but still got a parameter to pass, ...
24
votes
5
answers
31k
views
How to convert JSON to query string in angular2?
I'm new to Angular2. I have a JSON object, as below:
var options = {
param1: "parama1",
param2: "parama2",
param3: "parama3"
};
which should convert to query string and append to an external ...
14
votes
3
answers
47k
views
Angular 2 http.get with params
I want to send query parameters within a GET request. My class looks like this:
@Injectable()
export class Loader implements TranslateLoader{
constructor(private http: Http){
}
...
3
votes
6
answers
45k
views
How to send json data in url as request parameters in java
I want to send json data in url as below .
editTest.jsp?details=374889331-{"aNumber":2}
How can I do this?
1
vote
4
answers
18k
views
How to send a parameter (id) with get http request?
I started typing and http.get accepts only url so i don't have any idea how to
send and id of a person to get that person from my api which gets it from Sql database .
public getByID(n :number) : ...
1
vote
2
answers
16k
views
Trying to do a http.post request with a string as the payload
Im trying to send an http.post request from my angular app to the rest server using the following code:
I'm using: import { Http } from '@angular/http';
let headers = new Headers();
headers.append(...
1
vote
2
answers
3k
views
Http get params filter
I try use in Angular http.get with params :
i put to get (data)
getAllVM(data) {
console.log('data', data, 'params' ,(getParamString(data)));
return this.http.get(environment....
1
vote
1
answer
8k
views
Angular 7 Http get request send Object as param
This is how I need to send the request.
localhost:8080/api/user?id=53380&name=raj&start=1&rows=5
where id=53380&name=raj is one object.
Tried setting the param and send like below.
...
-1
votes
1
answer
3k
views
How to pass date in angular 8 GET request
I want to pass date in angular 8 $http Get request. Please suggest me that what is the correct way to pass date.
i want to do something like this
public getCalendarData(Date): any {
let ...
0
votes
1
answer
3k
views
How to include parameter in HTTP request with Angular 6
I need to call the following endpoint https://sample_url?id=12345 from an Angular service.
UserService
getUsersByGroupID(id): Observable<User[]> {
var url = 'https://sample_url';
var ...
1
vote
0
answers
2k
views
Angular 2, post method to local json file
I am starting to learn angular 2 and I want to add a new object in a json file, but I always have the following errors.
Failed to load resource: the server responded with a status of 405 (Method Not ...
1
vote
1
answer
1k
views
How to post data using REST API in suite crm
This is my rest.php file
<?php
chdir('../../..');
require_once 'SugarWebServiceImplv4_1_custom.php';
$webservice_path = 'service/core/SugarRestService.php';
$webservice_class = 'SugarRestService'...
0
votes
2
answers
957
views
Angular2 Post request parameter handling in C#
Angular 2 Code
Request URl: http://loacalhost:8800/MyController/SaveBookings
let data = {
occupationListStr: occupations,
rOccupationListStr: roccsStr,
};
let headers = new Headers({ 'Content-...