Skip to content

ousamamhadden/coding-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service for handling of devices in a Motorola radio system.

Usage

Storage of radio profiles

This is done using: POST /radios/{id} with a payload of the form

{
“alias”: string,
“allowed_locations”: array<string>
}

The json response is None. The standard response is "200 OK"

Setting a location

This is done using: POST /radios/{id}/location with a payload of the form

{
“location”: string
}

The json response is None. The standard response is "200 OK" for valid location The standard response is "403 FORBIDDEN" for invalid location

Retrieval of radio's location

This is done using: GET /radios/{id}/location

The json response is None if no location exists. The standard response is "404 NOT FOUND" if no location exists.

The json response if the location exists:

{
“location”: string
}

The standard response is "200 OK" for existing location

Data Storage

The information is stored in python dictonaries. So, all information is lost when the server stops running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published