Rest Services with Play Framework, MySQL, Adding Security with JWT

Slides:



Advertisements
Similar presentations
Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
Advertisements

12 October 2011 Andrew Brown IMu Technology EMu Global Users Group 12 October 2011 IMu Technology.
REST Vs. SOAP.
Introduction to Web Services
Server Access The REST of the Story David Cleary
General introduction to Web services and an implementation example
Scale Up Access to your 4GL Application using Web Services
Peoplesoft: Building and Consuming Web Services
Creating your website Using Plain HTML. What is HTML? ► Web pages are authored in HyperText Markup Language (HTML) ► Plain text is marked up with tags,
Introduction SOAP History Technical Architecture SOAP in Industry Summary References.
Building Dynamic Applications on both Office 365 and on-premise.
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control Maarten
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
Enabling Embedded Systems to access Internet Resources.
Presentation 7: Part 1: Web Services Introduced. Outline Definition Overview of Web Services Examples Next Time: SOAP & WSDL.
CSCI 6962: Server-side Design and Programming Web Services.
Web Services XML-RPC, SOAP, REST Advanced Web-based Systems | Misbhauddin.
Python and REST Kevin Hibma. What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a.
Or, Hey can’t we just do it using HTTP for the envelope?
Web Services. Abstract  Web Services is a technology applicable for computationally distributed problems, including access to large databases What other.
Chapter 10 Intro to SOAP and WSDL. Objectives By study in the chapter, you will be able to: Describe what is SOAP Exam the rules for creating a SOAP document.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Android networking 1. Network programming with Android If your Android is connected to a WIFI, you can connect to servers using the usual Java API, like.
DM_PPT_NP_v01 SESIP_0715_JR HDF Server HDF for the Web John Readey The HDF Group Champaign Illinois USA.
Google Data Protocol Guy Mark Lifshitz. Motivation Google’s Mission: – Organize the world’s information – Make information universally accessible – Provide.
API Crash Course CWU Startup Club. OUTLINE What is an API? Why are API’s useful? What is HTTP? JSON? XML? What is a RESTful API? How do we consume an.
Web Services Using Visual.NET By Kevin Tse. Agenda What are Web Services and Why are they Useful ? SOAP vs CORBA Goals of the Web Service Project Proposed.
Web Services An Introduction Copyright © Curt Hill.
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
The High Velocity Web Framework For Java and Scala.
Using Retrofit framework in implementation of Android REST client David Ante Macan*, Zlatko Stapić, Milan Pavlović* University of Zagreb Faculty of Organization.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Introducing the Microsoft® .NET Framework
Rest Services with Play Framework, Adding Security with JWT
Introduction to Web Services
The Object-Oriented Thought Process Chapter 13
GF and RS, Dept of CS, Mangalore University
The Client-Server Model
RESTful Sevices Distributed Objects Presented by: Shivank Malik
What is WWW? The term WWW refers to the World Wide Web or simply the Web. The World Wide Web consists of all the public Web sites connected to the Internet.
WEB SERVICES.
REST: Web Services Abel Sanchez.
Play Framework: Introduction
Cosc 5/4730 REST services.
Unit – 5 JAVA Web Services
GF and RS, Dept. of CS, Mangalore University
4166 Review.
Some bits on how it works
DSRA -Relative Web technology clarification in Technology Architecture
IBM Data Server Gateway for OData
Service Oriented Architecture
Task Management System (TMS)
End-to-End REST Service Testing Automation
Introduction to Web Services and SOA
WEB API.
Offline Database Synchronization with SOAP and MySQL
The future of distributed systems architecture
$, $$, $$$ API testing Edition
Secure Web Programming
Web services introduction, application and its future
Python and REST Kevin Hibma.
Introduction to Web Services and SOA
Week 05 Node.js Week 05
Distributed System using Web Services
WCF Data Services and Silverlight
Computer Network Information Center, Chinese Academy of Sciences
NEECOM – May 22, 2019 Todd L Gould, CEO
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Rest Services with Play Framework, MySQL, Adding Security with JWT México

Independent Consultor #geek #traveler #speaker Community Leader JDuchess Chapter Guatemala, Devs+502 Ex-JUG Member Guatemala Java Users Group (GuateJUG) Independent Consultor Full Stack Developer, Front-end y Back-end with Java, Mobile Development Android and iOS CTO at Produactivity #geek #traveler #speaker Mercedes Wyss @itrjwyss

Agenda Play Framework Web Services Restful JSONs Database Connection (JPA, JDBC) JWT (Json Web Tokens)

Agenda Play Framework Web Services Restful JSONs Database Connection (JPA, JDBC) JWT (Json Web Tokens)

Play Framework Makes it easy to build web applications with Java and Scala. Is based on a lightweight, stateless, web-friendly architecture. Built on Akka, provides predictable and minimal resources consumption (CPU, memory, threads) for highly-scalable applications.

Servidor: 1 CPU 2 GB Ram

Play Framework Develop using Java or Scala Is reactive Use the architecture MVC Uses Netty as App Server, AKKA Http since 2.6.x (Fewer configurations) Simulates the behavior of JRebel (more code, less deploys)

JVM

Reactive

MVC

How start a Play project? We need to use SBT Create sbt new playframework/play-scala-seed.g8 sbt new playframework/play-java-seed.g8 Deploy sbt run

Full Project Structure

Simple Project Structure

Agenda Play Framework Web Services Restful JSONs Database connection (JPA, JDBC) JWT (Json Web Tokens)

Web Services HyperText Transfer Protocol (HTTP) Allows communication between a client and a server Provide a standard means of interoperating between different software apps Characterized for interoperability and extensibility Based on XML

Linda. com (June 2017) https://www. lynda

SOAP Simple Object Access Protocol XML-based Use WSDL as specification description (Web Services Description Language) Need to follow a communication protocol

Restful Software Architecture based on HTTP method (Get, Post, Put, Delete, etc) Typically use JSON, but can use XML, Text

Madhaiyan Muthu (June 2017) https://www. slideshare

Agenda Play Framework Web Services Restful JSONs Database connection (JPA, JDBC) JWT (Json Web Tokens)

JSON JavaScript Object Notation Is a lightweight data-interchange format Self-describing Human-reading Is a Protocol

JSON Example

JSON Scheme

Package controllers; import play.libs.Json; import play.mvc.Controller; import play.mvc.Result; public class HomeController extends Controller { public Result index(){ JsonNode json = request().body().asJson(); PostRequest request = Json.fromJson(json, PostRequest.class); return ok(Json.toJson(request)); }

Agenda Play Framework Web Services Restful JSONs JWT (Json Web Tokens) Database connection (JPA, JDBC)

JWT Is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.

Auth0 (June 2017) https://cdn.auth0.com/content/jwt/jwt-diagram.png

JWT Structure

JWT Structure

JWT Structure

Agenda Play Framework Web Services Restful JSONs JWT (Json Web Tokens) Database connection (JPA, JDBC)

To End Let’s Finish our Exercise México