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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:35:41+00:00 2026-05-12T08:35:41+00:00

How can code be resource? I will give you an example: I want to

  • 0

How can code be resource?

I will give you an example: I want to create a hotel web site. But also i want to show my customers, which come from abroad, at which time they can come to my city. So i deal with an airplane web site. This site will give me his resources using REST. (resources mean representation of resources). For example his URI will be like that http://example.com/plane/flight%5Fnumber http://example.com/plane/flight%5Fnumber/date

My users will give me a date and i will say them at which flight number they can come. I’ll give him a list of flight number then he can fly. OK. there is something i haven’t solve yet. if i would know the plane number, i found date. But i dont know which flight number can he travel. So i need to search all the plane and all the flight number to find the same date. But how can i do it? How can i write my query?

another question is I have a function. That function gives me the flight number if i give the date [ int get_Flight_Number(12/11/2009) ].
I just want that clients can see parameters and name of function. And I want him to use my function. How this will be happen?

  • 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-12T08:35:42+00:00Added an answer on May 12, 2026 at 8:35 am

    Without the details of the media types returned by the service it is difficult to answer your question. Does the site return a search form? Does the site return a collection of flights for a set of dates?

    The general flow of any http based RESTful client inquiry should go something like this:

    1. Do a HTTP GET on the root url of the
      API.
    2. Parse the response based on the
      media type specified in the http header “Content-Type”.
    3. Does the response contain the answer
      to my question?
    4. If yes then extract the information
      and do what you want with it.
    5. If no, then does the response
      contain a link to another resource
      that may have the answer to my
      question.
    6. If yes then do a HTTP GET or POST on
      that link based on what the media
      type definition tells you to do. Goto step 3.
    7. If no then stop looking and tell the
      user you cannot find an answer.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python is pretty clean, and I can code neat apps quickly. But I notice
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
Is there a program or API I can code against to extract individual files
Surprisingly as you get good at vim, you can code even faster than standard
Can VBA code instantiate and use .NET objects? The specific class I'm interested in
Can source code examples be kept in a SQL database while retaining all formatting
Any code can be reused in a way or an other, at least if
Sometimes a labeled break or continue can make code a lot more readable. OUTERLOOP:
using register_shutdown_function I can register code to execute at the end of a PHP
How can I read a Chinese text file using C#, my current code can't

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.