-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
23 lines (18 loc) · 1.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
_____________
| Racks |
–––––––––––––
This is a rails Web application for managing your datacenters and their contents.
These are some things you should know in order to deploy and use it:
API:
–––––
The API gives the possibility to get an XML file with the devices used by a certain customer. The customer is identified using his customer number.
To authenticate the request sent to the API an MD5 digest of a pre-shared key, today's date, and the customer number is used.
A valid request is a POST sent to: http://place-where-racks-is-hosted/api/get_devices_for_customer/[customer number]
In the body of the request there should be a parameter that looks like this: (in Ruby)
secret=[Digest::MD5.hexdigest("pre_shared_key" + Date.today.to_s + customer_number.to_s)]
The shared secret is saved into a "secrets.yml" file in the config folder, the file has one entry:
pre_shared_key: [pre_shared_key]
For obvious reasons this file isn't under version control.
Todo:
_______
- Automate the entry of interface names on the iPhone layout.