-
Notifications
You must be signed in to change notification settings - Fork 19
Company API
Andrew Voitov edited this page Mar 19, 2016
·
1 revision
Property | Value |
---|---|
Method | GET |
URL | /api/v1/company/<companyId>
|
Parameters | companyId |
Content-Type | application/json |
Response: |
{
"_id": "55d041ef0232c58c2e9dae5c",
"name": "Super company",
"description": "Bla bla",
"owner": "u1",
"emails":[
"test@test.com",
"rest@email.ua"
],
"template": {
"date": "",
"role": "",
"time": "4",
"comment": ""
},
"defaultValues": [
{
"date": "01/01/2015",
"comment": "AAAAA"
}
],
"periods" : [
{
"start": "01/01/2015",
"end": "02/01/2015"
}
]
}
Property | Value |
---|---|
Method | PUT |
URL | /api/v1/company |
Content-Type | application/json |
Body: |
{
"name":"Super Project",
"description": "Bla bla bla",
"template": {
"date": "",
"role": "",
"time": "4",
"comment": ""
},
"defaultValues": [
{
"date": "01/01/2015",
"comment": "AAAAA"
}
],
"periods" : [
{
"start": "01/01/2015",
"end": "02/01/2015"
}
],
"emails": [
"test@test.test"
]
}
Response:
{
//saved object
}
Property | Value |
---|---|
Method | POST |
URL | /api/v1/company |
Content-Type | application/json |
Body: |
{
"_id": "562a62c62aff89b82428001f",
"name":"Super Project",
"description": "Bla bla bla",
"template": {
"date": "",
"role": "",
"time": "4",
"comment": ""
},
"defaultValues": [
{
"date": "01/01/2015",
"comment": "AAAAA"
}
],
"periods" : [
{
"start": "01/01/2015",
"end": "02/01/2015"
}
],
"emails": [
"test@test.test"
]
}
Response:
{
//saved object
}
© 2016 - 2018 Mifort.org