Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/islamhaqq/angular-restful-service
Created a RESTful service using Angular's HTTP module to POST and GET HTTP requests in JSON
https://github.com/islamhaqq/angular-restful-service
Last synced: 5 days ago
JSON representation
Created a RESTful service using Angular's HTTP module to POST and GET HTTP requests in JSON
- Host: GitHub
- URL: https://github.com/islamhaqq/angular-restful-service
- Owner: islamhaqq
- Created: 2016-11-13T15:09:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T14:54:11.000Z (almost 8 years ago)
- Last Synced: 2024-09-13T15:42:32.499Z (2 months ago)
- Language: TypeScript
- Homepage: https://angular-restful-service.firebaseapp.com
- Size: 831 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular RESTful Service
Demonstrating implementation of Angular 2 HTTP Service to connect to a RESTful service and send GET and POST requests, as well as how to handle responses
* Used REST API as a testing platform (http://www.jsontest.com/)
* Successfully made POST and GET HTTP requests
* Successfully mapped and subscribed to observables
* Attached headers to HTTP request
* Requested a JSON Object containing Data & Time
* Utilized Angular's Http and Headers libraries
* Validated using a reference parser and JSON parameters
* Deployed to Firebase using Firebase CLI
* Deployed to GitHub pages using Angular CLI**Note:** jsontest.com doesn't have SSL, so GET and POST requests don't work with the app hosted in GitHub Pages or Firebase. You have to locally host the app using Angular CLI's `ng serve`
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.16.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.