{"id":569,"date":"2021-10-28T07:58:43","date_gmt":"2021-10-28T07:58:43","guid":{"rendered":"https:\/\/doc.bim.fm\/index.php\/docs\/api\/"},"modified":"2022-02-11T13:53:37","modified_gmt":"2022-02-11T13:53:37","slug":"api","status":"publish","type":"docs","link":"https:\/\/doc.bim.fm\/index.php\/docs\/api\/","title":{"rendered":"API"},"content":{"rendered":"\n<h2>Introduction<\/h2>\n\n\n\n<p>API stands for\u00a0<strong>Application Programming Interface<\/strong>. In basic terms, APIs are a set of functions and procedures that allow for the creation of applications that access data and features of other applications, services, or operating systems.<\/p>\n\n\n\n<p>In our case, you can use our API easily though our nugget package nugget available for .NET Application<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2><a href=\"https:\/\/doc.bim.fm\/index.php\/docs\/api\/connect\/\" data-type=\"docs\" data-id=\"667\">Authentificate<\/a><\/h2>\n\n\n\n<h2><a href=\"https:\/\/doc.bim.fm\/index.php\/docs\/api\/lock-file\/\" data-type=\"docs\" data-id=\"571\">Lock file<\/a><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<h2>Usefull Class Information<\/h2>\n\n\n\n<h4>ResponseApi<\/h4>\n\n\n\n<p>In all your calls, the Nugget package will send you an ResponseApi object. <\/p>\n\n\n\n<p>The class is defined as follow :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Attribute<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>ErrorCode<\/td><td>string<\/td><td>An error code sent by the server. If there is an error in your request, this attribute will be instantiated. It will always contain a number with an index of the ErrorCode Enum below this table.<\/td><\/tr><tr><td>Status<\/td><td>int<\/td><td>Http status code<\/td><\/tr><tr><td>Detail<\/td><td>List<\/td><td>Error message list<\/td><\/tr><tr><td>Result<\/td><td>T (depends of the Rqs)<\/td><td>Dto model result<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>ErrorCode Enum<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Key<\/strong><\/td><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>-2<\/td><td>BAD_REQUEST<\/td><td><\/td><\/tr><tr><td>-1<\/td><td>PARAMETERS_ERROR<\/td><td><\/td><\/tr><tr><td>0<\/td><td>PERSISTENCE_EXCEPTION<\/td><td><\/td><\/tr><tr><td>1<\/td><td>INSTANCE_NOT_FOUND<\/td><td><\/td><\/tr><tr><td>2<\/td><td>USER_NOT_CREATE_ON_IDENTITY_SERVER<\/td><td><\/td><\/tr><tr><td>3<\/td><td>INVALID_GUID<\/td><td><\/td><\/tr><tr><td>4<\/td><td>USER_NOT_REGISTER<\/td><td><\/td><\/tr><tr><td>5<\/td><td>INSTANCE_ALREADY_EXIST<\/td><td><\/td><\/tr><tr><td>6<\/td><td>PERMISSION_DENY<\/td><td><\/td><\/tr><tr><td>7<\/td><td>EXPECTED_MULTIPART_REQUEST<\/td><td><\/td><\/tr><tr><td>8<\/td><td>FORM_DATA_PRESENT<\/td><td><\/td><\/tr><tr><td>9<\/td><td>UPLOADED_FILE_IS_EMPTY<\/td><td><\/td><\/tr><tr><td>10<\/td><td>FORMAT_EXCEPTION<\/td><td><\/td><\/tr><tr><td>11<\/td><td>ELASTIC_SEARCH_ERROR<\/td><td><\/td><\/tr><tr><td>12<\/td><td>IFC_UPDATE<\/td><td><\/td><\/tr><tr><td>13<\/td><td>IFC_GET<\/td><td><\/td><\/tr><tr><td>14<\/td><td>STORAGE_NOT_CONNECTED<\/td><td><\/td><\/tr><tr><td>15<\/td><td>STORAGE_FAIL_CREATE<\/td><td><\/td><\/tr><tr><td>16<\/td><td>STORAGE_SWIFT_API_ERROR<\/td><td><\/td><\/tr><tr><td>17<\/td><td>STORAGE_FILE_NOT_FOUND<\/td><td><\/td><\/tr><tr><td>18<\/td><td>INVALID_FORMAT_DATE<\/td><td><\/td><\/tr><tr><td>19<\/td><td>DATABASE_SCHEMA_NOT_VALIDATED<\/td><td><\/td><\/tr><tr><td>20<\/td><td>NHSESSION_ALREADY_EXIST<\/td><td><\/td><\/tr><tr><td>21<\/td><td>FILE_NOT_LOCK<\/td><td><\/td><\/tr><tr><td>22<\/td><td>FILE_ALREADY_LOCK<\/td><td><\/td><\/tr><tr><td>23<\/td><td>FILE_LOCKED<\/td><td><\/td><\/tr><tr><td>24<\/td><td>LOCK_CONFLICT<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":0,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"_links":{"self":[{"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/docs\/569"}],"collection":[{"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/comments?post=569"}],"version-history":[{"count":3,"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/docs\/569\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/docs\/569\/revisions\/678"}],"prev":[{"title":"Support","link":"https:\/\/doc.bim.fm\/index.php\/docs\/support\/","href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/docs\/544"}],"wp:attachment":[{"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/doc.bim.fm\/index.php\/wp-json\/wp\/v2\/doc_tag?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}