{"openapi":"3.0.2","info":{"contact":{"email":"rest-api@abacus.ch","name":"Abacus Research AG","url":"https://www.abacus.ch/"},"description":"","title":"Abacus API","version":"v1"},"servers":[{"description":"Abacus test system with a the default client installed. Gets reset and updated every week.","url":"https://entity-api1-1.demo.abacus.ch/api/entity/v1/mandants/7777/"}],"security":[{"oauth2":["oauth2"]}],"tags":[{"description":"","name":"Storages"}],"paths":{"/Storages":{"get":{"parameters":[{"description":"Show only the first n items, see [Paging - Top](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptiontop)","example":5,"explode":true,"in":"query","name":"$top","required":false,"schema":{"format":"int32","minimum":0,"type":"integer"},"style":"form"},{"description":"Expand related entities, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)","explode":true,"in":"query","name":"$expand","required":false,"schema":{"items":{"enum":[],"type":"string"},"type":"array"},"style":"form"},{"description":"Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)","explode":true,"in":"query","name":"$select","required":false,"schema":{"items":{"enum":["Id","Abbreviation","DossierObjectId","Designations"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"value":{"items":{"$ref":"#/components/schemas/ch.abacus.df.Storage"},"type":"array"}},"title":"object","type":"object"}}},"description":"Retrieved entities"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}},"description":"Error"}},"tags":["Storages"]},"post":{"description":"Add new entity to Storages","parameters":[{"description":"Show only the first n items, see [Paging - Top](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptiontop)","example":5,"explode":true,"in":"query","name":"$top","required":false,"schema":{"format":"int32","minimum":0,"type":"integer"},"style":"form"},{"description":"Expand related entities, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)","explode":true,"in":"query","name":"$expand","required":false,"schema":{"items":{"enum":[],"type":"string"},"type":"array"},"style":"form"},{"description":"Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)","explode":true,"in":"query","name":"$select","required":false,"schema":{"items":{"enum":["Id","Abbreviation","DossierObjectId","Designations"],"type":"string"},"type":"array"},"style":"form"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ch.abacus.df.Storage-create"}}},"description":"New entity","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ch.abacus.df.Storage-create"}}},"description":"Created entity"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}},"description":"Error"}},"tags":["Storages"]}},"/Storages(Id={Id})":{"delete":{"parameters":[{"description":"key: Id","explode":false,"in":"path","name":"Id","required":true,"schema":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"style":"simple"}],"responses":{"204":{"description":"Success"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}},"description":"Error"}},"summary":"Delete entity from Storages","tags":["Storages"]},"get":{"parameters":[{"description":"key: Id","explode":false,"in":"path","name":"Id","required":true,"schema":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"style":"simple"},{"description":"Show only the first n items, see [Paging - Top](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptiontop)","example":5,"explode":true,"in":"query","name":"$top","required":false,"schema":{"format":"int32","minimum":0,"type":"integer"},"style":"form"},{"description":"Expand related entities, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)","explode":true,"in":"query","name":"$expand","required":false,"schema":{"items":{"enum":[],"type":"string"},"type":"array"},"style":"form"},{"description":"Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)","explode":true,"in":"query","name":"$select","required":false,"schema":{"items":{"enum":["Id","Abbreviation","DossierObjectId","Designations"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ch.abacus.df.Storage"}}},"description":"Get entity from Storages by key"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}},"description":"Error"}},"tags":["Storages"]},"patch":{"parameters":[{"description":"key: Id","explode":false,"in":"path","name":"Id","required":true,"schema":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"style":"simple"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ch.abacus.df.Storage-update"}}},"description":"New property values","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ch.abacus.df.Storage-create"}}},"description":"Created entity"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}},"description":"Error"}},"summary":"Update entity in Storages","tags":["Storages"]}}},"components":{"schemas":{"ch.abacus.df.Storage-create":{"properties":{"Id":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"Abbreviation":{"maxLength":4,"nullable":false,"type":"string"},"DossierObjectId":{"nullable":false,"type":"string"},"Designations":{"items":{"$ref":"#/components/schemas/ch.abacus.df.Designation"},"type":"array"}},"title":"Storage","type":"object"},"ch.abacus.df.Storage-update":{"properties":{"Id":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"Abbreviation":{"maxLength":4,"nullable":false,"type":"string"},"DossierObjectId":{"nullable":false,"type":"string"},"Designations":{"items":{"$ref":"#/components/schemas/ch.abacus.df.Designation"},"type":"array"}},"title":"Storage","type":"object"},"ch.abacus.df.Storage":{"properties":{"Id":{"example":"aac04bd3-8ffb-4ff0-9989-bb3ace77a1fb","format":"uuid","nullable":false,"type":"string"},"Abbreviation":{"maxLength":4,"nullable":false,"type":"string"},"DossierObjectId":{"nullable":false,"type":"string"},"Designations":{"items":{"$ref":"#/components/schemas/ch.abacus.df.Designation"},"type":"array"}},"title":"Storage","type":"object"},"ch.abacus.df.Designation":{"properties":{"Language":{"maxLength":6,"nullable":false,"type":"string"},"Text":{"maxLength":255,"nullable":false,"type":"string"}},"title":"Designation","type":"object"},"error":{"properties":{"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"},"details":{"items":{"properties":{"target":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"array"},"innererror":{"type":"object"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"}},"securitySchemes":{"oauth2":{"description":"You can request the credentials at abacus-api@abacus.ch.","flows":{"clientCredentials":{"tokenUrl":"https://entity-api1-1.demo.abacus.ch/oauth/oauth2/v1/token"}},"type":"oauth2"}}}}