Category: REST
REST – Representational State Transfer
AngularJS Codeigniter REST CRUD Example
In this Codeigniter AngularJS CRUD example, we will see the integration of AngularJS with Codeigniter REST. We are going to create CRUD application using Codeigniter REST API on server side and AngularJS is encapsulated within PHP file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service. Please read the following tutorials before reading this…
AngularJS PHP REST CRUD Example
In this tutorial we will see the integration of AngularJS with PHP REST. We are going to create CRUD application using PHP REST API on server side and AngularJS is encapsulated within html file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service. Please read REST API CRUD Example in PHP, MySQL for server…
REST API CRUD Example in PHP PDO MySQL
REST APIs In this tutorial I am going to show you how you can work with RESTful webservice or REST webservice in PHP PDO, MySQL. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources….
@PreAuthorize annotation – hasPermission example in Spring Security
Introduction In this tutorial I will show you an example on @PreAuthorize annotation – hasPermission() example in Spring Security. The most useful annotation @PreAuthorize, which decides whether a method can actually be invoked or not based on user’s role and permission. hasRole() method returns true if the current principal has the specified role and hasPermission() method returns true if the…
@PreAuthorize Annotation – hasRole Example In Spring Security
Spring Security Has-Role In this tutorial I will show you an example on @PreAuthorize annotation – hasRole() example in Spring Security. @PreAuthorize is the most useful annotation that decides whether a method can actually be invoked or not based on user’s role. hasRole() method returns true if the current principal has the specified role. By default if the supplied role…
Validate input data in REST service
Introduction In this tutorial I will show you how you can validate your input data while working with REST service. Generally you need to validate the input data coming from end users because users may give anything as an input but your service side code should not accept anything as an input for the defined field. Prerequisites Please go through…
Documenting Spring REST API with Swagger 2
When creating a REST API, good documentation is instrumental. But developers do not have any option using JSR-339 to generate any documentation on all these APIs so other developers could quickly understand how to use them. For sure, it would be just awesome to generate verbose and easy to follow documentation from source code, and but the help is coming in…
Swagger REST API
Using JAX-RS API under JSR-339, it is easy to create REST services using excellent Java platform. But developers do not have any option using JSR-339 to generate any documentation on all these APIs so other developers could quickly understand how to use them. For sure, it would be just awesome to generate verbose and easy to follow documentation from source…
Working With RESTful Services in Codeigniter 3 – DELETE Example
Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I am going to use HTTP method DELETE to delete resource from server side. Related Posts: Working with RESTful services in Codeigniter – GET example Working with RESTful services in Codeigniter – POST example Working with RESTful services…
Working With RESTful Services in Codeigniter 3 – PUT Example
Introduction In the tutorial, working with restful services in codeigniter – put example, I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. The HTTP PUT method is used to update the existing record in server side. Related Posts: Working with RESTful services in Codeigniter – POST example Codeigniter GET example with…