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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:10:48+00:00 2026-06-11T08:10:48+00:00

I would like to create a web service from a simple invoice app I

  • 0

I would like to create a web service from a simple invoice app I have wrote. I would like it to return json and hopefully pdf files from apache fop. I do not want a html web page, I will access the service from python desktop application.

Can I ignore the template section of the documentation?

The most trouble I am having is accepting multiple parameters for a function.

How do I turn the sample code below into accepting multiple inputs?

@app.route('/post/<int:post_id>')
def show_post(post_id):
    # show the post with the given id, the id is an integer
    return 'Post %d' % post_id

I am new to programming and even more so to web services, if I am going about this in the wrong manner please let me know.

  • 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-11T08:10:50+00:00Added an answer on June 11, 2026 at 8:10 am

    You sure can ignore the html section. Flask is a nice lightweight way to create a web app. You can just return json (or other data) as responses to all your urls if you want and completely disregard the html templateing.

    You can include as many params/regexes as you need in your route definition Each one will create a new param for the function.

    @app.route('/post/<int:post_id>/<int:user_id>/')
    def show_post(post_id, user_id):
        # show the post with the given id, the id is an integer
        return 'Post %d' % post_id
    

    Does Flask support regular expressions in its URL routing?

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

Sidebar

Related Questions

I would like to create a configuration panel for the homepage of the web-app
I have a JSON response from a web service that I need to be
I have a ASP.NET web service decorated with System.Web.Script.Services.ScriptService() so it can return json
While Developing a Java EE Web app, I would like to know simple ways
I would like to create a RESTful web service that I can deploy on
I have created simple .NET Web Service (ASMX) that I call from my .NET
I would like to know if there is a way to create web pages
I would like to create a flash presentation for a web page. It would
Is it possible/easy to create a web page which would act like a Microsoft
Possible Duplicate: Create event handler for OnScroll for web browser control I would like

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.