Linked Questions

8 votes
2 answers
42k views

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 ...
vishnu's user avatar
  • 4,599
0 votes
1 answer
3k views

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:/...
Martin Brandl's user avatar
77 votes
5 answers
297k views

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, ...
user avatar
24 votes
5 answers
31k views

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 ...
Sivaprasad derangula's user avatar
14 votes
3 answers
47k views

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){ } ...
Sveta Antrapovich's user avatar
3 votes
6 answers
45k views

I want to send json data in url as below . editTest.jsp?details=374889331-{"aNumber":2} How can I do this?
Sanjaya Liyanage's user avatar
1 vote
4 answers
18k views

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) : ...
Алекса Јевтић's user avatar
1 vote
2 answers
16k views

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(...
Simon Mullaney's user avatar
1 vote
2 answers
3k views

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....
Arek Szumacher's user avatar
1 vote
1 answer
8k views

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. ...
user630209's user avatar
  • 1,191
-1 votes
1 answer
3k views

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 ...
vidya's user avatar
  • 11
0 votes
1 answer
3k views

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 ...
chris's user avatar
  • 2,882
1 vote
0 answers
2k views

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 ...
Takler21's user avatar
  • 109
1 vote
1 answer
1k views

This is my rest.php file <?php chdir('../../..'); require_once 'SugarWebServiceImplv4_1_custom.php'; $webservice_path = 'service/core/SugarRestService.php'; $webservice_class = 'SugarRestService'...
Aakanksha Singh's user avatar
0 votes
2 answers
957 views

Angular 2 Code Request URl: http://loacalhost:8800/MyController/SaveBookings let data = { occupationListStr: occupations, rOccupationListStr: roccsStr, }; let headers = new Headers({ 'Content-...
Prakash Gupta's user avatar

15 30 50 per page