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

GET | /location #88

Closed
3 tasks done
Osama-you opened this issue Feb 11, 2021 · 0 comments · Fixed by #89
Closed
3 tasks done

GET | /location #88

Osama-you opened this issue Feb 11, 2021 · 0 comments · Fixed by #89
Labels

Comments

@Osama-you
Copy link
Member

Osama-you commented Feb 11, 2021

relates #5

Route: ```GET api/v1/location ``

Acceptance Criteria

  • DB query
  • Response
  • Testing

DB query

SELECT * FROM locations ;

Response

  • Success
{ StatusCode: 200,
  data: [{
          id,
          location_sub,
          location_main,
        }]
}
  • Failed
{statusCode:400, message:"Bad Request"}

Testing

to be a successful test

  • status === 200
  • typeof(data) === "array"
  • data.length !== 0
@Osama-you Osama-you changed the title GET | Location GET | /location Feb 11, 2021
@Alaalser Alaalser linked a pull request Feb 11, 2021 that will close this issue
Alaalser added a commit that referenced this issue Feb 11, 2021
Alaalser added a commit that referenced this issue Feb 11, 2021
Alaalser added a commit that referenced this issue Feb 11, 2021
Alaalser added a commit that referenced this issue Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant