Skip to content

The remote schema use 3rd party rest APIs, please!🙏 #2014

@Eden-Harris

Description

@Eden-Harris

it's very basic and important,we have much old rest APIs and restFul APIs, and we often use 3rd party rest or restful APIs, the APIs is not graphql, if the remote schema can edit body, that's great!!!

the APIs from other company and not running on our own server, we cannot Convert to graphql or is will cause a lot of bugs, it's too complicated and heavy!

the APIs like this:

{
    "url": "https://b.dgacel.com.co/crm/so/edOrderProdDtl?MmEwMD=3_b5qGLGovpMIFQok4",
    "headers":{
        "Cookie":"JSESSIONID=187579F31AF43519349F92DF73C07740;FSSBBIl1UgzbN7N8443T=38BZs26UppWli4EPN3c6jG.dzaq;",
        "X-Requested-With":"XMLHttpRequest"
    },
    "body":{
        "prodInstId":12,
        "installArea":"rJjY3KmDUXPQ35aqdp+JSw==",
        "inFrame":["a","b","c"]
    }
}
// -----------------------------------------------------------------------------------------------
{
    "url": "https://apis.g2r3557oe.com",
    "headers":{
        "token":"rshbt5rt45edmlkfm.gklfdmje2343tk5rmhyftsgfdsmfesfdbgfh23y43o54egvfn",
        "Content-Type":" application/json; charset=UTF-8"
    },
    "body":{
        "name":"Sam",
        "gander":"male",
        "age":19,
        "studentID":245120180912887634592,
        "science": false //  default is true
    }
}

I want to use hasura to integrate existing REST APIs and third-party REST APIs.

image

I think other developers also will have this trouble, we usually use a lot of old REST-API from 3rd party SDK, and my company 's APIs, It's all rest or restful APIs

If I create a remote schema has the body's field from rest API's field, this will greatly reduce the workload and unify old API to graphql, I hope that hasura provide such a function, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions