LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-13-2021, 07:58 AM   #1
seamore
Member
 
Registered: Sep 2009
Posts: 83

Rep: Reputation: 1
API Service With Java


I need to set up a secure API service with Java to allow others to do Posts to my server. All the examples I've seen demonstrate how to do requests or post to other servers.

Could someone direct me to a resource/site that explains what I'm trying to do.

Much appreciated.
 
Old 04-13-2021, 09:49 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557

It's difficult without a clearer explanation of what you're trying to do.

You want to respond to HTTP Post requests using Java.

You can do that using the servlet API to create a webapp, which is served using a servlet engine provided by software such as Jetty/Tomcat/others.

Beyond that, it's hard to say much more because responding to requests is a very generic requirement.

There are lots of Java frameworks, some of which may be relevant and potentially help you with building the webapp, and should hopefully guide you towards doing it securely.

 
Old 04-13-2021, 10:49 AM   #3
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
I guess I need to be more specific. I have a web server for http requests.

What I need is to set up a API service that accepts Get and Post using REST.

There is a lo of info out there on to make API requests using REST but I have not found information on how to set an API service where I accept gets and posts using REST.
 
Old 04-13-2021, 10:57 AM   #4
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
I believe I found what I was looking for. Mason
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openstack-nova-{compute,network,api,metadata-api} as it says pid file exists but dead Bhargavnagaraju Linux - Newbie 0 05-28-2015 05:47 PM
[SOLVED] Chapter 6.7. Linux-3.16.2 API Headers , errors on installation of API headers JimmyJ1776 Linux From Scratch 9 02-17-2015 09:29 PM
[SOLVED] Difference between Library API and System Call API ram619 Linux - Kernel 8 12-27-2012 02:40 AM
LXer: Secure programming with the OpenSSL API, Part 1: Overview of the API LXer Syndicated Linux News 0 06-29-2012 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration