Git Product home page Git Product logo

consumerestws's Introduction

ConsumeRestWs

This is a simple Android App that consumes a RESTful webservice using retrofit 2.0.2

I have used a public RESTful webservice just to demonstrate how you can consume one:

The ws basic URL is http://jsonplaceholder.typicode.com/

There are some object that you can get from this ws (posts/comments/albums/photos etc.).

In this App I decided to work with posts. To get a Post object the full URL would be http://jsonplaceholder.typicode.com/posts/postId

There is a simple class named Post.java under model package. For further explanation you can explore the App which is very simple, it only contains 4 java classes and 1 layout file.

Here it is the input and the output of the App In the first image there is an EditText when the user enters the id of a Post he wants. In the 2nd one there is the result. You can process it after your needs.

consumerestws's People

Contributors

dbeqiraj avatar

Stargazers

Marjol Mehalla avatar

Watchers

James Cloos avatar  avatar

Forkers

juanunix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.