building an android app that consumes a restful api using retrofit

24
BUILDING AN ANDROID APP THAT CONSUMES A RESTFUL API USING RETROFIT

Upload: tsatsi-mahase

Post on 08-Aug-2015

125 views

Category:

Mobile


2 download

TRANSCRIPT

BUILDING AN ANDROID APP THAT CONSUMES A RESTFUL API USING

RETROFIT

What is a RESTful api?

What is a REST Client?

What is Retrofit?

Why use Retrofit?

WHAT TO EXPECT

RESTFUL API SERVICE

POST - Transfers a new state to a resource

PUT - Updates a resource through specific resource

GET -  Retrieves the current state of a resource

DELETE - deletes a resource

Retrofit

Asynchronous Http Client

Volley

REST CLIENTS

Easier to understand Uses Gson by default

WHY RETROFIT?

This is an application component that provides a screen with which users can interact with

ACTIVITIES

This represents a behaviour or a portion of user interface in an activity

FRAGMENTS

Manage the data model and adapts it to individual entries in a widget

ADAPTERS

ANDROID PROJECT STRUCTURE

LET’S START CODING