Shared info of IoT & Cloud, Banking, Angular Wicket, Spring Microservices, BigData, flutter, E-comm, Java Telecomm and More

Showing posts with label Web Services. Show all posts
Showing posts with label Web Services. Show all posts

Saturday, March 30, 2019

Create a backend for frontend application architecture

A Backend for Frontend (BFF) architecture can be used to create backends for client-facing mobile or web apps. BFF’s can help support an application with multiple clients while at the same time moving the system into a less-coupled state than a monolith system. This code pattern helps teams iterate features faster and have control over the backends for mobile apps without affecting the experience for a corresponding mobile or web app.

Tuesday, February 21, 2017

Consuming a RESTful Web Service with Spring for Android

This Getting Started guide walks you through the process of building an application that uses Spring for Android's RestTemplate to consume a Spring MVC-based RESTful web service.

Compile và chạy ứng dụng rest server

You will build an Android client that consumes a Spring-based RESTful web service. Specifically, the client will consume the service created in Building a RESTful Web Servce.
Chạy spring boot rest: java -jar gs-rest-service-0.1.0.jar
The Android client will be accessed through an Android emulator, and will consume the service accepting requests at:
http://192.168.1.3:8080/greeting
The service will respond with a JSON representation of a greeting:
{"id":1,"content":"Hello, World!"}
The Android client will render the ID and content into a view.

Thursday, April 14, 2016

Java API for JSON Processing: An Introduction to JSON

1. JSON Introduction

JSON (JavaScript Object Notation) is a lightweight, text-based, language-independent data exchange format that is easy for humans and machines to read and write. JSON is limited to text and numeric values. Binary values are not supported. JSON was originally derived as a subset of the JavaScript Specification (ECME-Script) and it is therefore directly supported in JavaScript.
JSON can represent two structured types: objects and arrays. An object is an unordered collection of zero or more name/value pairs. An array is an ordered sequence of zero or more values. The values can be strings, numbers, booleans, null, and these two structured types.
=> Data structures in JSON are based on key / value pairs. The key is a string, the value can be a numerical value, a boolean value (true or false) or an object.

Saturday, January 22, 2011

Getting Started with RESTful Web Services


REpresentational State Transfer (REST) is an architectural style for distributed hypermedia systems, such as the World Wide Web. Central to the RESTful architecture is the concept of resources identified by universal resource identifiers (URIs). These resources can be manipulated using a standard interface, such as HTTP, and information is exchanged using representations of these resources. In this tutorial, you first learn a bit about REST and then you are shown how NetBeans IDE supports this architectural style.
Contents
To follow this tutorial, you need the following software and resources.
Software or ResourceVersion Required
NetBeans IDEJava download bundle, version 6.8
Java Development Kit (JDK)version 6 or version 5
Warning: NetBeans IDE 6.9 requires JDK 6
Java EE-compliant web or application serverTomcat web server 6.0 or GlassFish Server Open Source Edition.
Important: If you use Tomcat with this Tutorial, see 
the NetBeans Wiki on Tomcat with REST.
The jdbc/sample database on the
Java DB (Derby) database server
Generated by NetBeans IDE when you install
it with the GlassFish application server

Introduction

RESTful web services are services built using the RESTful architectural style. Building web services using the RESTful approach is emerging as a popular alternative to using SOAP-based technologies for deploying services on the internet, due to its lightweight nature and the ability to transmit data directly over HTTP.
The IDE supports rapid development of RESTful web services using JSR 311 - Java API for RESTful Web Services (JAX-RS) and Jersey, the reference implementation for JAX-RS.

Popular Posts

Blog Archive