{"id":29171885,"url":"https://github.com/vijayjadhav008/angular-rest-service","last_synced_at":"2026-05-19T06:02:59.309Z","repository":{"id":57179005,"uuid":"92058642","full_name":"vijayjadhav008/angular-rest-service","owner":"vijayjadhav008","description":"An Angular library to access RESTful Web Services","archived":false,"fork":false,"pushed_at":"2017-05-23T19:19:38.000Z","size":1181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-30T17:18:27.886Z","etag":null,"topics":["angular","angular2","angular4","api-rest","rest","restful"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vijayjadhav008.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-22T13:47:19.000Z","updated_at":"2017-05-23T19:34:00.000Z","dependencies_parsed_at":"2022-09-14T03:30:41.780Z","dependency_job_id":null,"html_url":"https://github.com/vijayjadhav008/angular-rest-service","commit_stats":null,"previous_names":["sherlock-221b/angular2-rest-service","sherlock-221b/angular-rest-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vijayjadhav008/angular-rest-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayjadhav008%2Fangular-rest-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayjadhav008%2Fangular-rest-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayjadhav008%2Fangular-rest-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayjadhav008%2Fangular-rest-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vijayjadhav008","download_url":"https://codeload.github.com/vijayjadhav008/angular-rest-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vijayjadhav008%2Fangular-rest-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262969886,"owners_count":23392530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular2","angular4","api-rest","rest","restful"],"created_at":"2025-07-01T13:08:47.796Z","updated_at":"2026-04-29T04:34:12.773Z","avatar_url":"https://github.com/vijayjadhav008.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-rest-service\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install angular-rest-service --save\n```\n\n## How to use\n\n\nMake these changes in your root module `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n\n// Import\nimport { AngularRestServiceModule, AngularRestService,\nAngularRestServiceSettings} from 'angular-rest-service';\n\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    //add to imports array\n    AngularRestServiceModule\n  ],\n  //add to providers array\n  providers: [AngularRestService, AngularRestServiceSettings],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\nIn the main component, set the base URL:\n\n```typescript\nimport { Component, OnInit } from ’@angular/core’; \nimport { AngularRestServiceSettings } from ’angular-rest-service’;\n@Component({ \n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n  })\n  \n  export class AppComponent implements OnInit { \n    \n    constructor( private settings: AngularRestServiceSettings) { } \n    \n    ngOnInit() { \n      this.settings.setBaseUrl(\"http://base/url/api\");\n    }\n}\n\n```\n\nExample :\nFrom any component, do this:\n\n```typescript\nimport { Component, OnInit } from ’@angular/core’; \nimport { AngularRestService } from ’angular-rest-service’;\n@Component({ \n  selector: 'my-app',\n  templateUrl: './my-app.component.html',\n  styleUrls: ['./my-app.component.css']\n  })\n  \nexport class MyAppComponent implements OnInit { \n    userList ;\n    constructor(private rest : AngularRestService) { } \n    \n    ngOnInit() { \n\n      //makes a GET request to http://base/url/api/users/\n      this.rest.list(\"users\").doGet().subscribe(\n        result =\u003e{\n          this.userList = result.json();\n          //do other stuff\n        }\n      );\n    }\n}\n\n```\n\n\n\n\n## License\n\nMIT © [Vijay Jadhav](mailto:vijayjadhav008@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijayjadhav008%2Fangular-rest-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvijayjadhav008%2Fangular-rest-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvijayjadhav008%2Fangular-rest-service/lists"}