Skip to content

Post in InvokeApiAsync #2

Closed
Closed

Description

@JohannTIM

Is there any change development of post capabilities for invokeapiasync is done?

Activity

  1. deadlyfingers commented on Oct 14, 2016

    @deadlyfingers
    Contributor

    Currently only GET method is available. I'll try to add POST as well as PUT, PATCH and DELETE methods for Easy APIs. @JohannTIM what are you looking to POST btw - JSON or other data?

    I've added this to the feature demo roadmap -
    https://github.com/Unity3dAzure/AppServicesDemo/wiki/Feature-roadmap

  2. deadlyfingers commented on Oct 15, 2016

    @deadlyfingers
    Contributor

    Encountering an issue using "post" method in Easy API (node backend) - its returning the "get" response in Postman app. Anyone else encountered this before? Also posted comment here -
    https://azure.microsoft.com/en-gb/documentation/articles/app-service-mobile-node-backend-how-to-use-server-sdk/

  3. deadlyfingers commented on Oct 15, 2016

    @deadlyfingers
    Contributor

    Ah found the answer - POST needs to be sent from "https" not "http"!

  4. deadlyfingers commented on Oct 15, 2016

    @deadlyfingers
    Contributor

    @JohannTIM if you want to see a Unity example I've also updated the App Services Demo.
    The Generate Scores button will now submit multiple random scores with the POST method using Easy API (node backend).

    Unity InvokeApi example using POST:
    https://github.com/Unity3dAzure/AppServicesDemo/blob/master/Assets/Scripts/HighscoresDemo.cs#L316

    Easy API node script:
    https://github.com/Unity3dAzure/AppServicesDemo#easy-api-generatescores-script-apigeneratescoresjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions