Saturday, February 17, 2018

Swagger 2 Support for Rest API Documentation

Please follow Rest API Server to see the big picture and GitHub repo details.

Swagger 2 helps in building the documentation for Rest API's. Springfox provides a suite of libraries to support this. To support, Rest API documentation in Spring boot, follow the steps below

Add to Gradle dependencies

compile('io.springfox:springfox-swagger2:2.7.0')
compile('io.springfox:springfox-swagger-ui:2.7.0')

The Swagger dependency helps in documenting the Rest API. The second dependency helps in providing a UI to present the set of API's on browser.

Now define the configuration bean

Tuesday, February 13, 2018

Rest based API server

Rest based API platforms are very common these days. This has also led to the logical separation of front-end and back-end. New front-end techniques like Single page application nicely fit with these concepts and also is a logical separation of ownership. Backend deals with providing the information in the form of API and front-end deals with presenting them in an appropriate way.

Putting a Rest-based API server means a lot of frameworks need to play with each other. There are functional concerns about security, performance needs to be taken care of. However, at the core, it's about exposing endpoints as web services which can consume and emit JSON data.

Thursday, November 2, 2017

numpy ndarray


numpy ndarray is a n dimensional array. The array is a table of elements of same type. Let's go through some basic operations that we can do with ndarray

Wednesday, November 1, 2017

Pandas dataframe data manipulation


Python dataframe is a tabular structure and can be think like a spreadsheet. It provides a lot of functionality to play with data at column, row or individual data point level. 

Let's look into a jupyter python notebook about how the different data can be manipulated 

Tuesday, October 31, 2017

Pandas Dataframe data selection


Python dataframe is a tabular structure and can be think like a spreadsheet. It provides a lot of functionality to play with data at column, row or individual data point level. 

Let's look into a jupyter python notebook about how the different data can be displayed 

Monday, October 30, 2017

Reading csv and excel files in pandas dataframe

Dataframe can be used to load the data from various files. Let's look into how we can load the data from excel and csv.


Make sure the data file that you are loading is present in the given location. In my case, I will be assuming that the data file is present at the same location where python code is.

Code to load different files