Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3358534
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:45:51+00:00 2026-05-18T02:45:51+00:00

I’ve been reading up on REST web services and would like to implement a

  • 0

I’ve been reading up on REST web services and would like to implement a rest service of my own.

All the examples on the internet that I’ve seen relate to database access. But what I want to achieve has nothing to do with accessing a database.

I want to create a REST service that allows a large string and various other parameters to be passed into a resource and it return a xml result set back. Nothing is created or updated into a database, nothing is retrieved from a database. Its passing data to a complex processing procedure to then return the results.

My problem lies with what VERB do I use?

I feel I should use the GET verb to stay in line with best practices but the query could potentially be very large sometimes and passing this on the querystring is in practical.

This leaves me with POST. This seems to fit what I want to acheive but I think it breaks away from REST best practices again!

Is REST only to be used when wanting to interact with a database?

Should I scrap the idea of using rest and create a SOAP service?

UPDATE my REST service is to analyse articles and return keyword reports for the given article. Given this then the resource is ‘keywords’, a POST to this will return a full report. I was thinking then of a second uri of keywords/recommended, a POST to this will return a few recommended key phrases of the submitted article. Does this comply with REST?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:45:52+00:00Added an answer on May 18, 2026 at 2:45 am

    REST does not require a database, if fact REST has nothing to do with databases.

    The scenario you describe is exactly what POST is intended to do. Quoting from the latest revision of the HTTP specs:

    The POST method is used to request
    that the origin server accept the
    representation enclosed in the request
    as data to be processed by the target
    resource.resource.

    You could do something like:

    POST /ArticleProcessor
    Content-Type: text/plain
    

    to send up your article text, and the response could be:

    Status: 200 OK
    Content-Type:application/xhtml
    
    <html>
    <title>Results of keyword processing</title>
    <body>
    <a rel="FullReport" href="/reports/2343434/full">Full Report</a>
    <a rel="TopKeywords" href="/reports/2343434/top">Top Keywords</a>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.