{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Overview","type":"basic","slug":"rest-api-overview","excerpt":"","body":"REST APIs are a common functionality in modern web apps that are **frequently** used.\n\nThis is why we focus on making this process **consistent**.\nThis makes it much easier to develop new endpoints in your API.\n\nFor example, validation errors are displayed automatically as noted in [Restangular](doc:restangular).\n\nLaravel Angular Material Starter provides helps you standardize the format of your API's return data.\nErrors responses have a specific format and success responses have another one.\nIt also benefits from this consistency on the front-end, by configuring **response interceptors** that will automatically open a toast that will show validation error.\n\nAll of this is provided with optional [Json Web Token Authentication](doc:jwt-authenticated-routes) support and useful [API test helpers](doc:api-test-helpers) that will make integration testing easier.","updates":["574b3a71989455170051580b","578c8f20bd223d2000cc14aa"],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57ffd85f755a2e1700c2bb24","createdAt":"2015-12-18T23:16:41.234Z","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"REST API","slug":"rest-api","order":4,"from_sync":false,"reference":false,"_id":"57ffd85f755a2e1700c2bb0a","version":"57ffd85f755a2e1700c2bb05","createdAt":"2015-12-18T23:14:14.145Z","__v":0,"project":"567083021dabd80d00b122ae"},"parentDoc":null,"__v":0,"githubsync":"","project":"567083021dabd80d00b122ae","user":"567082433a32d20d00c45cab","version":{"version":"3.4","version_clean":"3.4.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57ffd85f755a2e1700c2bb06","57ffd85f755a2e1700c2bb07","57ffd85f755a2e1700c2bb08","57ffd85f755a2e1700c2bb09","57ffd85f755a2e1700c2bb0a","57ffd85f755a2e1700c2bb0b","57ffd85f755a2e1700c2bb0c","57ffd85f755a2e1700c2bb0d"],"_id":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","releaseDate":"2016-10-13T18:54:23.018Z","__v":1,"createdAt":"2016-10-13T18:54:23.018Z"}}
REST APIs are a common functionality in modern web apps that are **frequently** used. This is why we focus on making this process **consistent**. This makes it much easier to develop new endpoints in your API. For example, validation errors are displayed automatically as noted in [Restangular](doc:restangular). Laravel Angular Material Starter provides helps you standardize the format of your API's return data. Errors responses have a specific format and success responses have another one. It also benefits from this consistency on the front-end, by configuring **response interceptors** that will automatically open a toast that will show validation error. All of this is provided with optional [Json Web Token Authentication](doc:jwt-authenticated-routes) support and useful [API test helpers](doc:api-test-helpers) that will make integration testing easier.