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 7774047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:16:50+00:00 2026-06-01T17:16:50+00:00

I started looking at the Tonic Restful Services framework and I really think it’s

  • 0

I started looking at the Tonic Restful Services framework and I really think it’s a very nice framework. The problem is that I cannot find much resources apart from the examples in order to see possible ways of using it.

I would like for example to know if I could use the POST verb more than one time in a single resource and if there is some sort of annotation that could allow me to do that. For example JAX-RS have the @Action annotation.

I really do not have a lot of experience with REST or PHP so I really need your help.

Thank you in advance.

  • 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-06-01T17:16:52+00:00Added an answer on June 1, 2026 at 5:16 pm

    No, you cannot. But you can route your posts using another variable in your posts requests.
    Just make sure to clean methods name for security reasons…

    something like this.

       /**
         * Handle a POST request for this resource
         * @param Request request
         * @return Response
         */
        function post($request) {
    
            if (isset($_POST['method'])) {
               return $this->$method($request, $name);
            }
    
        } 
    
        function post_one($request) {
           // your code here
        }
    
        function post_two($request) {
           // your code here
        }
    
        //...and so on...
    

    If you want to check if method exists, you could use something like

    if (method_exists('controller_name', 'method_name'));
    

    But that’s another topic. http://php.net/manual/en/function.method-exists.php

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

Sidebar

Related Questions

I've started looking into a few larger server-app frameworks that would be able to
I'm recently started to learn Twisted framework and now looking for some cheat sheets/reference
Just started looking into Entity Framework and the new Code-First features. My question is
I started looking into Cassandra and I am really impressed with what it provides,
I've just started looking at gemfire. I'm really impressed actually. I'm a little confused
I've started using Pivotal Tracker and really enjoy it. I've also started looking at
I started looking into PhoneGap yesterday and created a simple marble rolling around while
When I first started looking at Scala, I liked the look of for-comprehensions. They
I recently started looking into building web applications using .NET MVC and I stumbled
I've started looking at re-writing some pages on a clients website and I can

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.