Python Flask REST API Login Logout Example

Introduction We will create REST APIs to allow users login and logout from an application using Python and Flask. We have seen in another tutorial how to login and logout from an application where UI or front end was built using flask template file but here we are not providing any UI or front end but UI or front end…

Python Flask REST API Multiple Files Upload

Multiple Files Upload This example is about to upload multiple files using Python Flask REST API. You might have also seen how to upload single file using Python Flask REST API. You may need to upload single or multiple files according to application’s requirements and here I am going to create an example on Python Flask REST API multiple files…

Python Flask REST API File Upload Example

File Upload I will create here Python Flask REST API file upload example though you might have seen how to upload file using Python Flask in web application. You may need to upload a single file or multiple files into your application for a reason and here I am going to use light-weight web based Python framework called Flask to…

How To Call File Upload REST API Using Postman

Introduction Here I will show you how to call file upload REST API using Postman. Postman is a very popular REST client tool which is used to test your REST services. It is also used to test your REST service which uploads a single file or multiple files to remote server. There are other REST client extensions in Chrome and…

REST API CRUD Example in PHP and MongoDB

In this tutorial I am going to show an example on REST API CRUD example in PHP and MongoDB. We know MongoDB is very popular open source, document based, NoSQL database. In this tutorial I will create MongoDB PHP CRUD Example with RESTful API. CRUD means Create, Read, Update and Delete operations. So basically you will add new data (create),…

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 – 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…

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…