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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:58:50+00:00 2026-05-12T19:58:50+00:00

I am new to Restful concept and have to design a simple API for

  • 0

I am new to Restful concept and have to design a simple API for a media analysis service I need to set up, to perform various tasks, e.g. face analysis, region detection, etc. on uploaded images and video.

Outline of my initial design is as follows:

  • Client POSTs a configuration XML file to http://manalysis.com/facerecognition. This creates a profile that can be used for multiple analysis sessions. Response XML includes a ProfileID to refer to this profile. Clients can skip this step to use the default config parameters
  • Client POSTs video data to be analyzed to http://manalysis.com/facerecognition (with ProfileID as a parameter, if it’s set up). This creates an analysis session. Return XML has the SessionID.
  • Client can send a GET to http://manalysis.com/facerecognition/SessionID to receive the status of the session.

Am I on the right track? Specifically, I have the following questions:

  • Should I include facerecognition in the URL? Roy Fielding says that “a REST API must not define fixed resource names or hierarchies” Is this an instance of that mistake?
  • The analysis results can either be returned to the client in one large XML file or when each event is detected. How should I tell the analysis engine where to return the results?
  • Should I explicitly delete a profile when analysis is done, through a DELETE call?

Thanks,

C

  • 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-12T19:58:51+00:00Added an answer on May 12, 2026 at 7:58 pm

    You can fix the entry point url,

    GET /facerecognition
    
    <FaceRecognitionService>
      <Profiles href="/facerecognition/profiles"/>
      <AnalysisRequests href="/facerecognition/analysisrequests"/>
    </FaceRecognitionService>
    

    Create a new profile by posting the XML profile to the URL in the href attribute of the Profiles element

    POST /facerecognition/profiles
    201 - Created
    Location: /facerecognition/profile/33
    

    Initiate the analysis by creating a new Analysis Request. I would avoid using the term session as it is too generic and has lots of negative associations in the REST world.

    POST /facerecognition/analysisrequests?profileId=33
    201 - Created
    Location: /facerecognition/analysisrequest/2103
    

    Check the status of the process

    GET /facerecognition/analysisrequest/2103
    
    <AnalysisRequest>
       <Status>Processing</Status>
       <Cancel Method="DELETE" href="/facerecognition/analysisrequest/2103" />
    </AnalysisRequest>
    

    when the processing has finished, the same GET could return

    <AnalysisRequest>
       <Status>Completed</Status>
       <Results href="/facerecognition/analysisrequest/2103/results" />
    </AnalysisRequest>
    

    The specific URLs that I have chosen are relatively arbitrary, you can use whatever is the clearest to you.

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

Sidebar

Related Questions

I have a RESTful web service deployed at http://example.com/v1/SomeResource . One day, a new
Why is there a need to define a new method in RESTful controller, follow
I have the following restful structure: My login page uses the session/new action My
I'm a new REST convert and I'm trying to design my first RESTful (hopefully)
I have an old WCF 3.5 RESTful service that was at: http://www.mydomain.com/rest/Service.svc I have
I'm writing RESTful service with C#/wcf and need to put filters on GET. Like
I am new to the arena of RESTful services. I have been going through
I am entirely new to streaming implementation. I have developed some RESTful web services
I have a JsonStore configured like so: var store = new Ext.data.JsonStore({ restful: true,
Microsoft's new Windows Live Application Based Storage API is a RESTful API. More info

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.