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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:42:16+00:00 2026-06-15T09:42:16+00:00

I have a REST method at http://api.mysite/RestMethod?uid=1 that accepts Credentials object in the body

  • 0

I have a REST method at http://api.mysite/RestMethod?uid=1 that accepts Credentials object in the body of the request. Credentials object is pretty simple: has two properties, UserName and Password. After successfull request the method returns an integer.

I want to put Credentials to the above URL and get back the returned integer value. All the examples out there show PUT when request and response both work with the same type object. How would I get back an int?

I was able to get PUT working using

[objectManager putObject:credentials delegate:self];

RestKit shows that response came back with Status Code 200. But it fails to deserialize the integer.

Any help would be highly appreciated.

Thanks.

P.S. I’m in no way required to use RestKit. I will consider other options.

  • 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-15T09:42:18+00:00Added an answer on June 15, 2026 at 9:42 am

    In the end I ended up rewriting my API method to return same Credentials object with a boolean flag IsAuthenticated set to either true or false, and used RKObjectManager mappings to map serializers/deserializers to the JSON

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

Sidebar

Related Questions

I have a JSON server (WCF REST) with a JSON POST method that accepts
I have to map a REST Webservice URL like http://server:8080/application/service/customer/v1 to createCustomer method in
Basically I want to use the Twitter Users Lookup (REST API) method, this: http://apiwiki.twitter.com/w/page/24142947/Twitter-REST-API-Method:-users-lookup
I have a REST API that I am trying to access using Rails 3.0.1
I have a scenario in which I have REST API which manages a Resource
I have a REST service that returns a JSON like this: [{@id:123,name:Name}] and I'm
I have a REST API using Django Tastypie. Given the following code The models
I have a REST endpoint accepting a POST request to mark a code as
I have a REST api with Gzip compression enabled, it's developed using the ASP.net
I have a REST API built with Symfony2 and the FOSRestBundle. This all works

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.