{"swagger":"2.0","info":{"description":"This is an api documentation for Salesforce and Marble","version":"1.0.0","title":"API Documentation"},"tags":[{"name":"authorization","description":"for salesforce org authorization"},{"name":"developers","description":"Operations available to regular developers"}],"paths":{"/services/oauth2/token":{"get":{"tags":["developers"],"summary":"searches inventory","operationId":"searchInventory","description":"By passing in the appropriate options, you can search for\navailable inventory in the system\n","produces":["application/json"],"parameters":[{"in":"query","name":"searchString","description":"pass an optional search string for looking up inventory","required":false,"type":"string"},{"in":"query","name":"skip","description":"number of records to skip for pagination","type":"integer","format":"int32","minimum":0},{"in":"query","name":"limit","description":"maximum number of records to return","type":"integer","format":"int32","minimum":0,"maximum":50}],"responses":{"200":{"description":"search results matching criteria","schema":{"type":"array","items":{"$ref":"#/definitions/Authparameters"}}},"400":{"description":"bad input parameter"}}},"post":{"tags":["authorization"],"summary":"authorize salesforce org","operationId":"addInventory","description":"Adds an item to the system","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"key","description":"values","schema":{"$ref":"#/definitions/Authparameters"}}],"responses":{"200":{"description":"OK"},"400":{"description":"bad request"}}}}},"definitions":{"Authparameters":{"type":"object","required":["username","password","grant_type","client_id","client_secret"],"properties":{"username":{"type":"string","example":"abhijeet@marble.sandboxDEV.com"},"password":{"type":"string","example":"mindz@321"},"grant_type":{"type":"string","example":"password"},"client_id":{"type":"string","example":"3MVG97wqanbUM37KT.6nb0PcKNBd1FVs9K7OtMmbNk5CfRxHyL.H1D6bzEc_RuF7U2tIWf94J5AWAYRir3S_N"},"client_secret":{"type":"string","example":"2AA22404AF9528C55074584ADAAB6D7DDF48F23EBBA6B88D1FFD0483448D4F82"}}}},"schemes":["https"],"host":"virtserver.swaggerhub.com","basePath":"/Technology-Mindz/001/1.0.0"}