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

  • Home
  • SEARCH
  • 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 7074989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:07:25+00:00 2026-05-28T06:07:25+00:00

I have an existing application that controls a machine and want to add a

  • 0

I have an existing application that controls a machine and want to add a REST interface to it. Two of the high level commands are to start and stop machine operation. I had originally though about mapping these operations to POST and DELETE verbs, such as:

POST /control           // start machine operation
DELETE /control         // stop machine operation

but we’re not really deleting anything as such, just stopping operation. Delete doesn’t seem to be a good fit. Another idea was to further spell out the operations in the URL, such as

POST /control/start_operation    // start machine operation
POST /control/stop_operation     // stop machine operation

but this seems to contradict the REST concept of not putting verbs in the URLs. Any advice from the Stack Overflow readers out there on how best to map this kind of operation?

  • 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-28T06:07:26+00:00Added an answer on May 28, 2026 at 6:07 am

    REST stands for Representational State Transfer where the interaction focuses on transferring the state of resources.

    In order to design a “proper” REST interface, you first have to define what resources’ state is being transferred.

    From what you’ve said, it seems that the only state that would be transferred is the current status of the machine. To that end, you are really just updating that state with the REST calls, and there happens to be additional activities that happen based on this state.

    The HTTP verb that best fits the “Update the state and have other things happen” model is POST. You would POST to /myMachineController/status and the payload would be either on or off.

    In general, REST is very much a data-centric service paradigm and doesn’t usually fit too well in places where there isn’t very much data to act on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing application that is written in C++ for Windows. This application
We have an existing application that relies heavily on stored procedures and untyped DataSets.
I have an existing application that imports data from a web site api into
I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I
I have a custom HttpModule rewrite engine in an existing web application project that
I have a silverlight application that I am embedding in an existing ASP.NET web
I have inherited an big existing PHP application (website actually) that runs on Apache.
I am working on splitting out an existing, working application that I currently have
I have an application with existing data, that has Zero in the date column.
I have an existing library (not a Winforms application) that supplies some Winforms to

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.