Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.