top of page
Data Cloud

AZURE CLOUD

Azure Cloud: Welcome

CAR REGISTRATION FUNCTIONS

ADD-PLATENUMBER

https://counterfunctions20200429005139.azurewebsites.net/api/add-PlateNumber/{user}/{id}/{owner}

  • @user : the user name

  • @id : the plate number

  • @owner : the car owner


the function adds a plate number for an exist user .

​

example: GET https://counterfunctions20200429005139.azurewebsites.net/api/add-PlateNumber/obaida/123456789/obaida'sFather

GET-ALL-USERS

https://counterfunctions20200429005139.azurewebsites.net/api/get-All-Users/

​

the function returns all the users as a List

GET-REGESTERED-CARS

https://counterfunctions20200429005139.azurewebsites.net/api/get-regestered-cars/{user}

​

the function returns all the regestered car as a json of the user's regestered cars

* if user==admin => returns all the regestered cars for all users .

REMOVE-PLATE-NUMBER

https://counterfunctions20200429005139.azurewebsites.net/api/remove-PlateNumber/{user}/{id}/{owner}

  • @user : the user name

  • @id : the plate number

  • @owner : the car owner


the function removes a plate number for an exist user and exist (id,owner) pair.

​

example: GET https://counterfunctions20200429005139.azurewebsites.net/api/remove-PlateNumber/obaida/123456789/obaida'sFather

Azure Cloud: FAQ

USER FUNCTIONS

UPDATE-USER

https://counterfunctions20200429005139.azurewebsites.net/api/update-User/{act}/{name}

  • @act : {add , remove}

  • @name : the user name


the function removes and adds users to the User table in the azure storage.

​

example for adding a user : GET https://counterfunctions20200429005139.azurewebsites.net/api/update-User/add/rambo


then if we want to remove it we do a GET request of https://counterfunctions20200429005139.azurewebsites.net/api/update-User/remove/rambo

POST-LOGIN

https://counterfunctions20200429005139.azurewebsites.net/api/post-login

​

the function checks the user-password pair and return true if it matches ; otherwise returns false
using post request

in the post json you must send a json that contains : PartitionKey ,Password ,RowKey


Example of a json :
    {
    "PartitionKey":"obaida",
    "Password":"mySecret",
    "RowKey":""
    }

​

the return value is false because the real password is 12131213

POST-CHANGE-PASS

https://counterfunctions20200429005139.azurewebsites.net/api/post-changePass


the function changes the password of an exist user 
using post request

in the post json you must send a json that contains : PartitionKey ,Password ,RowKey


Example of a json :
    {
    "PartitionKey":"obaida",
    "Password":"mySecret",
    "RowKey":""
    }


the password of user obaida will be changed to the new one "mySecret"

NEGOTAITE

https://counterfunctions20200429005139.azurewebsites.net/api/negotiate?


this function is used for getting an Access Token and an Url, that help us connecting and listen to signals and masseges from 
the signalR serveice in the azure 

its a post request 
in the post json you must send a json that contains : UserId


Example of a json :
    {
    "UserId":"obaida"
    }

​

and returns a json which includes the Access Token and the nogotiation URL

Azure Cloud: FAQ

REQUEST HANDLE FUNCTIONS

GET-ACTION-REQUEST

https://counterfunctions20200429005139.azurewebsites.net/api/get-action-request/{act}/{user}/{owner}/{plateNum}

  • @act : {add , remove}

  • @name : the user name

  • @owner : car owner

  • @plateNum : the car number

​

this function add / remove a request 

GET-REQUESTS

https://counterfunctions20200429005139.azurewebsites.net/api/get-requests/{user}/{isApproved}

  • @user : the user /or the admin name("admin" in our situation)

  • @isApproved : {true/false}, if true : return the waiting requests for approval(for the admin) ,else return the approved/rejected requests(for the feed)

​

this function returns all the request if user=="admin"

if isApproved is "true" then will return the rejected/approved requests (u can use it to show the feeds content)

if isApproved is "false" then the function returns the requests which didn't approved/rejected yet (for the Admin use)

GET-APPROVE-REQUESTS

https://counterfunctions20200429005139.azurewebsites.net/api/get-approve-request/{act}/{user}/{owner}/{plateNum}

  • @act : {true ,false} , indicates approved /rejected requests

  • @name : the user name

  • @owner : car owner

  • @plateNum : the car number

​

this function approve / reject the requests

Azure Cloud: FAQ

GARAGE FUNCS

GET-GARAGE-CONTENT

https://counterfunctions20200429005139.azurewebsites.net/api/get-garage-content/

​

returns a list of the cars in the garage in this moment

GET-PLACES-NUMBER

https://counterfunctions20200429005139.azurewebsites.net/api/get-places-number/


returns the number of avaliable places in the garage in this moment

GET-APPROVE-REQUESTS

https://counterfunctions20200429005139.azurewebsites.net/api/get-isOpen/{id}/{state}?

  • @id : plate number

  • @state : {in, out} 

​

​this function is used by the Garage Door Simulator which gets the plate number and the status (in/out)and returns whether to open the gate or not 

Azure Cloud: FAQ

©2020 by smart garage door. Proudly created with Wix.com

bottom of page