Skip to content
New issue

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

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

Already on GitHub? # to your account

GET /api/goals #14

Closed
MorisR opened this issue Jul 23, 2020 · 0 comments
Closed

GET /api/goals #14

MorisR opened this issue Jul 23, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@MorisR
Copy link
Collaborator

MorisR commented Jul 23, 2020

Info

returns a json object representing the yearly goals of the organization

the data that goes here:
image

Returns

on pass

{
    "ok": true, // boolean
    "code": 200, // response code with a matching error code
    "data": [
       data: {
            current: 8531,
            goal: 10000
        },
        { ... },
        { ... },
    ], 
}

on fail

{
    "ok": false, // boolean
    "message": "...", // a matching error message
    "code": 400 or 500, // response code with a matching error code
}
@MorisR MorisR added the documentation Improvements or additions to documentation label Jul 23, 2020
@MorisR MorisR closed this as completed Jul 23, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant