IEEE.org
|
IEEE Xplore Digital Library
|
IEEE Standards
|
IEEE Spectrum
|
More Sites
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open at RIT
My Conservation Life
Conservation360
Commits
3fae7fbc
Commit
3fae7fbc
authored
Feb 21, 2020
by
APalumbo97
Browse files
Updating documentation for the database endpoints in the API.
parent
09448e6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
db/docs/assetPropTypes.json
0 → 100644
View file @
3fae7fbc
{
"/assetPropTypes"
:
{
"post"
:
{
"description"
:
"Returns all the property types for an asset type."
,
"requestBody"
:
{
"assetTypeID"
:
"The number for the asset type ID"
,
"content"
:
{
"application/json"
:
{}
}
}
},
"responses"
:
{
"200"
:
{
"description"
:
"The property types have been returned."
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"asset_type_id"
:
{
"type"
:
"integer"
},
"name"
:
{
"type"
:
"string"
},
"data_type"
:
{
"type"
:
"string"
},
"required"
:
{
"type"
:
"boolean"
},
"is_private"
:
{
"type"
:
"boolean"
}
}
}
}
}
}
}
}
}
db/docs/assetPropsByTypeID.json
0 → 100644
View file @
3fae7fbc
{
"/assetPropsByTypeID"
:
{
"post"
:
{
"description"
:
"Gets all asset properties for a given asset type."
,
"requestBody"
:
{
"assetTypeID"
:
"The asset type ID as an integer"
,
"content"
:
{
"application/json"
:
{}
}
}
},
"responses"
:
{
"200"
:
{
"description"
:
"All of the asset properties have been returned."
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"value"
:
{
"type"
:
"string"
},
"property_id"
:
{
"type"
:
"integer"
}
}
}
}
}
}
}
}
}
db/docs/assetTypes.json
0 → 100644
View file @
3fae7fbc
{
"/assetTypes"
:
{
"get"
:
{
"description"
:
"Returns all asset type IDs and descriptions."
,
"parameters"
:
[],
"responses"
:
{
"200"
:
{
"description"
:
"Asset types returned"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"description"
:
{
"type"
:
"string"
}
}
}
}
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment