Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

HTTP 204 Response, while creating Survey ScoreCard #1622

Closed
therajanmaurya opened this issue Mar 29, 2016 · 2 comments
Closed

HTTP 204 Response, while creating Survey ScoreCard #1622

therajanmaurya opened this issue Mar 29, 2016 · 2 comments

Comments

@therajanmaurya
Copy link
Member

Demo Server giving 204 response when submitting POST Request to https://demo.openmf.org/fineract-provider/api/v1/surveys/3/scorecards with Json Object

{
  "userId": 1,
  "clientId": 9,
  "createdOn": "2016-03-29T19:31:48.094Z",
  "scorecardValues": [
    {
      "questionId": 21,
      "responseId": 77,
      "value": 0
    },
    {
      "questionId": 22,
      "responseId": 86,
      "value": 2
    },
    {
      "questionId": 23,
      "responseId": 89,
      "value": 7
    },
    {
      "questionId": 24,
      "responseId": 92,
      "value": 4
    },
    {
      "questionId": 25,
      "responseId": 97,
      "value": 2
    },
    {
      "questionId": 26,
      "responseId": 102,
      "value": 3
    },
    {
      "questionId": 27,
      "responseId": 104,
      "value": 3
    },
    {
      "questionId": 28,
      "responseId": 106,
      "value": 6
    },
    {
      "questionId": 29,
      "responseId": 110,
      "value": 7
    },
    {
      "questionId": 30,
      "responseId": 113,
      "value": 7
    }
  ]
}

Where:
createdOn is the current date in the standard form "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"

Note : There is no ScoreCard adding into database !
Beacuse When submitting GET Request to the
https://demo.openmf.org/fineract-provider/api/v1/surveys/3/scorecards.
The Response list is null([])

Reference : https://demo.openmf.org/api-docs/apiLive.htm#scorecards_create,
https://demo.openmf.org/api-docs/apiLive.htm#scorecards_list

@therajanmaurya therajanmaurya changed the title HTTP 204 Response while creating Survey ScoreCard HTTP 204 Response, while creating Survey ScoreCard Mar 29, 2016
@bnasim
Copy link

bnasim commented Mar 31, 2016

There is issue in Survey API, POST Scorecard doesn't work. You can check in POSTMAN, it was throwing constraint violation error.

@vorburger
Copy link
Member

@therajanmaurya thank you for your interest in Mifos. This Git repository is no longer actively maintained, but we would love to see your contributions over in https://github.com/apache/fineract, which is the exact same code as this one.

Just FYI, that apache/fineract project doesn't use Git Hub Issues but instead they use issues in the FINERACT project in the Apache JIRA, here: https://issues.apache.org/jira. You may also be interested in having a look at http://fineract.apache.org for a better overview and more resources.

I'm closing this old open issue to avoid any future confusion to others.

/Cc FYI @openMF/admins @openMF/core-team @meonkeys @myrle-krantz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants