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

Adding new endpoint #25

Merged
merged 2 commits into from May 27, 2021
Merged

Adding new endpoint #25

merged 2 commits into from May 27, 2021

Conversation

egamble01
Copy link
Collaborator

Adding requested endpoint for
"/locations/key/{external_key}"
{
"numberAvailable": "2",
"inputType": 2,
"date": "2021-05-28T00:00:00+04:00",
"numberTotal": "10",
"vaccine": 5,
"tagsA": " ",
"organization": 23,
"line1": "test",
"line2": "test2",
"city": "toronto",
"province": "ontario",
"postcode": "m6n2b8",
"name": "test",
"phone": "4165555555",
"notes": " ",
"active": 1,
"url": "http://www.test.com",
"tagsL": " "
}

and
"/locations/id/{location_id}"
{
"numberAvailable": "2",
"inputType": 2,
"date": "2021-05-28T00:00:00+04:00",
"numberTotal": "10",
"vaccine": 5,
"tagsA": " ",
"organization": 23,
"line1": "test",
"line2": "test2",
"city": "toronto",
"province": "ontario",
"postcode": "m6n2b8",
"name": "test",
"phone": "4165555555",
"notes": " ",
"active": 1,
"url": "http://www.test.com",
"tagsL": " ",
"external_key":"test4564536"
}

@egamble01 egamble01 requested a review from pleckey May 23, 2021 15:54
@egamble01
Copy link
Collaborator Author

Also added the
{{baseUrl}}/api/v1/security/login endpoint which takes in the body:

{
"name": "test",
"password": "test123"
}

and returns
{
"result": 1,
"key": "05f8620d-bd62-4b0d-99f9-c187b27f8a2f"
}

or
{
"result": 0,
"key": "05f8620d-bd62-4b0d-99f9-c187b27f8a2f"
}

@egamble01 egamble01 merged commit cc87b63 into main May 27, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant