This project is completed for the Introduction to Software Engineering course at University of Ottawa.
Name | Student Number |
---|---|
Yong Lin Wang | 300065862 |
Braden Collingwood | 300059397 |
Daniel Wu | 300015800 |
Anurag Taak | 300073742 |
BASE URI = 'https://us-central1-this-is-a-firebase-project.cloudfunctions.net/api/v1';
Body
{
"password": "asdfasdf",
"userName": "[email protected]"
}
Response(s)
{
"isSuccess": true,
"user": {
"userName": "[email protected]",
"firstName": "testtt",
"lastName": "testtt",
"role": "patient"
}
}
{
"isSuccess": false,
"msg": "invalid credentials"
}
204 NOT FOUND
Body
{
"firstName": "testtt",
"lastName": "testtt",
"password": "asdfasdf",
"userName": "[email protected]",
"role": "patient"
}
Response(s)
{
"isSuccess": false,
"msg": "user already exists"
}
{
"isSuccess": true,
"user": {
"userName": "[email protected]",
"firstName": "testtt",
"lastName": "testtt",
"role": "patient"
}
}
Response(s)
{
"isSuccess": true,
"service": [
{
"id": "57VLDH0UcyQrhYBpCSmc",
"data": {
"name": "Yonglin Wang",
"price": 0.01,
"role": "Hackerman"
}
},
{
"id": "B1HSf36f8coI90PlD3Cw",
"data": {
"name": "Daniel Wu",
"price": 9.99,
"role": "Hackerman"
}
},
{
"id": "Hb8rU0lAcmodqNXiceyx",
"data": {
"name": "Yonglin Wang",
"price": 1,
"role": "Hackerman"
}
}
]
}
Response(s)
{
"isSuccess": true,
"service": {
"id": "57VLDH0UcyQrhYBpCSmc",
"data": {
"price": 0.01,
"role": "Hackerman",
"name": "Yonglin Wang"
}
}
}
204 NOT FOUND
Body
{
"name": "Yonglin Wang",
"role": "Hackerman",
"price": 19.99
}
Response(s)
{
"isSuccess": true,
"service": {
"id": "NuXdEGsqHnxmko2TJk6k",
"data": {
"role": "Hackerman",
"name": "Yonglin Wang",
"price": 19.99
}
}
}
{
"isSuccess": false,
"msg": "invalid body"
}
Response(s)
204 NOT FOUND
Body
{
"name": "Yonglin Wang", //optional
"role": "Hackerman", //optional
"price": 21.99 //optional
}
Response(s)
{
"isSuccess": true,
"service": {
"id": "Hb8rU0lAcmodqNXiceyx",
"service": {
"price": 21.99 // return modified fields
}
}
}
204 NOT FOUND
Response(s)
{
"isSuccess": true,
"provider": [
{
"id": "f95MKFquyXPHjCPrqZpR",
"data": {
"isLiscened": true,
"description": "lorem ipsum",
"address": "test",
"phoneNumber": "1234567890",
"company": "test",
"email": "test"
}
},
{
"id": "hWKko2UakIIGKr0qj3gl",
"data": {
"description": "lorem ipsum",
"address": "test2",
"phoneNumber": "1231231230",
"company": "test2",
"email": "test2",
"isLiscened": false
}
}
]
}
Response(s)
{
"isSuccess": true,
"provider": {
"id": "xxtV5g1dlVXYmeCc0HaA",
"data": {
"description": "lorem ipsum",
"address": "test2",
"phoneNumber": "1231231230",
"company": "test2",
"email": "[email protected]",
"isLiscened": true
},
"services": [
{
"id": "57VLDH0UcyQrhYBpCSmc",
"data": {
"name": "Yonglin Wang",
"price": 0.01,
"role": "Hackerman"
}
},
{
"id": "BQsRB0RpMoA9qEWDSwCz",
"data": {
"price": 65767,
"role": "yonglin",
"name": "THAI MASSAGE"
}
}
]
}
}
204 NOT FOUND
Body
{
"email": "test2",
"phoneNumber": "1231231230",
"address": "test2",
"company": "test2",
"description": "lorem ipsum",
"isLiscened": false
}
Response(s)
{
"isSuccess": true,
"provider": {
"id": "hWKko2UakIIGKr0qj3gl",
"data": {
"isLiscened": false,
"description": "lorem ipsum",
"address": "test2",
"phoneNumber": "1231231230",
"company": "test2",
"email": "test2"
}
}
}
{
"isSuccess": false,
"msg": "invalid body"
}
Response(s)
204 NOT FOUND
Body
{
"email": "test2", // optional
"phoneNumber": "1231231230", // optional
"address": "test2", // opotional
"company": "test2", // optional
"description": "lorem ipsum", // optional
"isLiscened": false // optional
}
Response(s)
{
"isSuccess": true,
"provider": {
"id": "hWKko2UakIIGKr0qj3gl",
"service": {
"phoneNumber": "1231231230" // return modified fields
}
}
}
204 NOT FOUND
Response(s)
204 NOT FOUND
Body
{
"serviceId": "57VLDH0UcyQrhYBpCSmc",
"userId": "test",
"time" : "9:00"
}
Response(s)
{
"isSuccess": true,
"appointment": {
"id": "Ry4jRIRtR81gLzcl0iNF",
"data": {
"time": "9:00",
"serviceId": "57VLDH0UcyQrhYBpCSmc",
"userId": "test"
}
}
}
Response(s)
{
"isSuccess": true,
"appointment": [
{
"id": "6Nzo8vbcaSTBtIacIFi5",
"data": {
"serviceId": "Lue07Yh2mFbQUvufXaye",
"userId": "[email protected]",
"time": "9:00"
}
},
{
"id": "CYJfWNWHaqAeq3Tw84F3",
"data": {
"serviceId": "Lue07Yh2mFbQUvufXaye",
"userId": "[email protected]",
"time": "9:30"
}
},
{
"id": "DZjj9g8ERZH9A1H8cE0j",
"data": {
"serviceId": "Lue07Yh2mFbQUvufXaye",
"userId": "[email protected]",
"time": "9:15"
}
}
]
}
Response(s)
{
"isSuccess": true,
"appointment": [
{
"id": "CYJfWNWHaqAeq3Tw84F3",
"data": {
"serviceId": "Lue07Yh2mFbQUvufXaye",
"userId": "[email protected]",
"time": "9:30"
}
},
{
"id": "DZjj9g8ERZH9A1H8cE0j",
"data": {
"serviceId": "Lue07Yh2mFbQUvufXaye",
"userId": "[email protected]",
"time": "9:15"
}
}
]
}