Created
December 28, 2017 07:10
-
-
Save gregjlee/5358cae4d47aade5f5e9e500e363e0d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE api/v1/part-inventory/:id | |
DELETE api/v1/assets/:id | |
DELETE api/v1/locations/:id | |
GET api/v1/part-inventory/ | |
GET api/v1/assets/ | |
GET api/v1/locations/ | |
Example using Parts | |
/api/v1/part-inventory/? | |
limit=10 | |
&objectLocation[className]=Location | |
&objectLocation[id]=UtWE9PTxgw | |
QueryParams - All are optional | |
limit - Int ex: limit = 100 | |
offset - Int ex: offset = 20 | |
sort - any sortable field + ASC/DESC | |
ex:sort = 'updatedAt DESC' or sort = 'stringPartName DESC' | |
Search for exact matching value - | |
AnyFieldName = value | |
ex: 'stringPartName' = 'Exact part name' | |
Search for containing value | |
AnyFieldName[contains] = valueOrPartOfValue | |
ex: 'stringPartName[contains]' = 'beginning of the part name' | |
Search for matching parse object relationships | |
RelationalFieldName[className] = ParseClassName | |
RelationalFieldName[id] = objectId | |
ex: for parts with Location of id UtWE9PTxgw | |
'objectLocation[className]' = 'Location' | |
'objectLocation[id]' = 'UtWE9PTxgw' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment