DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest Integration Topics

article thumbnail
10 Threats to an Open API Ecosystem
Worried about threats to your Open API ecosystem? Prepare yourself with this list of noteworthy tips and best practices.
July 19, 2022
by Michael Bogan DZone Core CORE
· 6,992 Views · 2 Likes
article thumbnail
API Security Weekly: Issue 169
In this update, learn more about an insecure API in WordPress plugin and a Tesla 3rd party vulnerability, as well as become introduced to vAPI.
July 18, 2022
by Colin Domoney
· 4,463 Views · 2 Likes
article thumbnail
Image Generation in Action: 3 Methods With Code Samples and Image Generation API
In this article, learn possible solutions needed to generate images programmatically, possible caveats and pitfalls you may hit, as well as best practices.
July 18, 2022
by Max Shash DZone Core CORE
· 4,795 Views · 3 Likes
article thumbnail
CMS, CRM, and ERP – What Is It and Why?
This article explains CMS, CRM, and ERP with all their similarities and differences.
July 15, 2022
by Anna Smith
· 8,903 Views · 6 Likes
article thumbnail
How to Improve Data Quality With GCP Protocol Buffers
This is a guide on how to enforce schema changes in Google BigQuery leveraging Google Protocol Buffers, aka Protobuf.
July 15, 2022
by Yuliia Tkachova
· 6,704 Views · 3 Likes
article thumbnail
10 Error Status Codes When Building APIs for the First Time and How To Fix Them
Things don’t always go smoothly when first using an API, especially if you’re a beginner. We compiled the 10 most common error codes when building an API.
July 15, 2022
by Kay Ploesser
· 8,864 Views · 4 Likes
article thumbnail
API Security Weekly: Issue 168
Learn about API vulnerability in Safari 15 leaking user info, vulnerabilities in AWS, and a podcast with Rinki Sethi and Alissa Knight discussing API security.
July 15, 2022
by Colin Domoney
· 7,219 Views · 1 Like
article thumbnail
AWS Lambda Provisioned Concurrency AutoScaling Configuration With AWS CDK
This article presents a quick intro to provisioned concurrency scaling and strategies.
July 14, 2022
by Jeroen Reijn DZone Core CORE
· 4,411 Views · 2 Likes
article thumbnail
How To Perform OCR on a Photograph of a Receipt Using Java
Learn of challenges associated with processing physical receipts for digital expensing operations and discover an OCR API solution to alleviate the problem.
July 14, 2022
by Brian O'Neill DZone Core CORE
· 6,779 Views · 4 Likes
article thumbnail
Everything You Should Know About APIs
API stands for Application Programming Interface. In this article, you will learn the processes, benefits, and working of APIs.
July 14, 2022
by Himanshu Mehra
· 17,605 Views · 12 Likes
article thumbnail
Learning About the Headers Used for gRPC Over HTTP/2
In this article, we take a look some next-generation HTTP headers available for integration developers to use when designing APIs.
Updated July 13, 2022
by Kin Lane
· 47,593 Views · 4 Likes
article thumbnail
Building a REST Service That Collects HTML Form Data Using Netbeans, Jersey, Apache Tomcat, and Java
The Jersey project is very well documented so it makes it easy to learn REST with Java. In this article I’m going to build two projects. The first project will be a very simple HTML page that presents a form to the user and then submits it to a REST project residing on the same server. The second project will be the REST part. For this article I used the following tools: 1. Netbeans 7 2. Apache Tomcat 7 3. Jersey 4. Java I built this on OS X Lion. Go ahead and create a new Maven Web Application with Netbeans 7 called: MyForm Once the project has been generated take the resulting (default) index.jsp file and delete it. In its place add a file called: index.html and add the following content to it: Name: Message: Item 1: Item 2: Basically, I created a simple (ugly) form that takes a few parameters the user enters. They submit the form and the data is sent to the REST project we will soon be building. The idea here is we are using an HTTP POST to create a new message. That’s it for the first project! With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. Create another new Maven Web Application with Netbeans 7 called: RESTwithForms Add two new Java classes to the new project: 1. MyApplication 2. MessageResource The code for MyApplication.java is as follows: package com.giantflyingsaucer; import com.sun.jersey.api.core.PackagesResourceConfig; import javax.ws.rs.ApplicationPath; @ApplicationPath("/") public class MyApplication extends PackagesResourceConfig { public MyApplication() { super("com.giantflyingsaucer"); } } In a brief nutshell this code allows us to make use of some Servlet 3.0 goodies (we don’t need to create a web.xml file for this project as an example). For more details see the sections titled: Example 2.8. Reusing Jersey implementation in your custom application model and Example 2.9. Deployment of a JAX-RS application using @ApplicationPath with Servlet 3.0 at this link. The real guts of the REST project are in the MessageResource.java file as seen below: package com.giantflyingsaucer; import java.net.URI; import java.util.List; import java.util.UUID; import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.Response; import javax.ws.rs.Consumes; import javax.ws.rs.core.MediaType; @Path("/messages") public class MessageResource { @POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createMessage(@FormParam("name") String name, @FormParam("message") String message, @FormParam("thelist") List list) { if(name.trim().length() > 0 && message.trim().length() > 0 && !list.isEmpty()) { // Note 1: Normally you would persist the new message to a datastore // of some sort. I'm going to pretend I've done that and // use a unique id for it that obviously points to nothing in // this case. // Note 2: The way I'm returning the data should be more like the commented // out piece, I am being verbose for the sake of showing you how to // get the values and show that it was read. return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).entity( name+ ": " + message + " --> the items: " + list.get(0) + " - " + list.get(1)).build(); // This is a more real world "return" //return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).build(); } return Response.status(Response.Status.PRECONDITION_FAILED).build(); } } Note: Pay special attention to the comments. Please don’t email me stating I shouldn’t be returning text back with the values, also please don’t tell me I should be iterating the list, etc. this is just a demo. You will obviously do this differently in a production environment. The key here is simplicity and minimal code. At this point you need to add jersey-server as a dependency in your POM file. com.sun.jersey jersey-server-linking 1.9.1 With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. You are now ready to test it out. Load up the HTML file from the first project and enter some data and then submit it. If you have a tool like FireBug for Firefox, you can also see that an HTTP 201 was returned (if successful). If you don’t enter any data in the form then you should get an HTTP 412 back. With not much more work you could just as easily use something like jQuery and submit the form via AJAX.
July 13, 2022
by Chad Lung
· 66,925 Views · 4 Likes
article thumbnail
Best Runtime for AWS Lambda Functions
This blog contains comparative analysis to get best runtime for AWS Lambda functions.
July 13, 2022
by Emin Bilgic
· 8,423 Views · 3 Likes
article thumbnail
The Best Authentication Methods for B2B SaaS Integrations
How do you pick the best authentication method for your integration? Let’s look at when and why B2B SaaS teams use basic auth, API keys, and OAuth 2.0.
July 13, 2022
by Bru Woodring
· 5,940 Views · 1 Like
article thumbnail
Everything You Need to Know About SaaS Security Certification
We'll talk about the significance of SaaS security certifications, the many sorts available, and how to pick which one is appropriate for your organization.
July 12, 2022
by Varsha Paul
· 6,048 Views · 2 Likes
article thumbnail
What Is TTFHW?
Time to First Hello World, or TTFHW, is a key metric for product-focused organizations. This is the moment when a customer first derives value from your platform.
July 12, 2022
by Matt Tanner
· 5,070 Views · 6 Likes
article thumbnail
12 Best Software Development Tools for This Year
Read about 12 software development tools to use. A software development company in New York can prove to be a valuable partner for business organizations.
July 11, 2022
by Rajeev Rajagopal
· 13,460 Views · 2 Likes
article thumbnail
Web Scraping as an API Service
Making scraping simple
July 10, 2022
by Dariusz Suchojad
· 11,426 Views · 3 Likes
article thumbnail
API Security Weekly: Issue 166
In this post, discover more about securing large API ecosystems, creating OpenAPI from HTTP traffic, Frankenstein APIs, and API proliferation.
July 8, 2022
by Colin Domoney
· 5,693 Views · 4 Likes
article thumbnail
Using Infura’s New API With Lootbox
Learn about Infura's new API capabilities and how you can use it to build and interact with digital blockchain assets without writing smart contracts.
July 8, 2022
by Paul McAviney
· 5,520 Views · 1 Like
  • Previous
  • ...
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×