Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs not conforming to the API spec #36

Open
ChakshuGautam opened this issue Jul 26, 2021 · 0 comments
Open

APIs not conforming to the API spec #36

ChakshuGautam opened this issue Jul 26, 2021 · 0 comments

Comments

@ChakshuGautam
Copy link
Contributor

Similar to how the bot and userSegment APIs have a concrete request-response structure, the ODK forms API is not following the same.

{
    "id": "api.userSegment.get",
    "ver": "1.0",
    "ts": "2021-07-26T05:36:39.485Z",
    "params": {
        "resmsgid": "73658ed0-edd3-11eb-bdf3-31f208f20801",
        "msgid": null,
        "status": "failed",
        "err": "UNAUTHORIZED_REQUEST",
        "errmsg": "The user is not the owner of the asset."
    },
    "responseCode": "CLIENT_ERROR",
    "result": {}
}

Use the messageUtils to define the messages relevant to forms and the successResponse and successResponse functions to create the response structure.

@ChakshuGautam ChakshuGautam changed the title ODK Forms API not conforming to the API spec APIs not conforming to the API spec Jul 28, 2021
snehar-nd added a commit to snehar-nd/uci-apis that referenced this issue Jul 29, 2021
ChakshuGautam added a commit that referenced this issue Aug 6, 2021
#36 APIs not conforming to the API spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant