An unfinished system to manage all your paper documentation in an easy way.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
5 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. {
  2. "openapi": "3.0.2",
  3. "info": {
  4. "title": "AutoDoc API",
  5. "description": "API description of AutoDoc",
  6. "version": "1.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "https://autodoc.home.spale.com/v1",
  11. "description": "Gloor AutoDoc Server"
  12. }
  13. ],
  14. "tags": [
  15. {
  16. "name": "Create",
  17. "description": "Create new documents/pages"
  18. },
  19. {
  20. "name": "Images",
  21. "description": "Get documents/pages images/thumbnails"
  22. },
  23. {
  24. "name": "Objects",
  25. "description": "Retrieve a document/page meta data"
  26. },
  27. {
  28. "name": "Properties",
  29. "description": "Manipulate properties"
  30. }
  31. ],
  32. "components": {
  33. "schemas": {
  34. "page": {
  35. "description": "page object",
  36. "type": "object",
  37. "properties": {
  38. "id": {
  39. "readOnly": true,
  40. "type": "string"
  41. },
  42. "documentId": {
  43. "readOnly": true,
  44. "description": "Link to Document",
  45. "type": "string"
  46. },
  47. "name": {
  48. "readOnly": false,
  49. "description": "Document name, may be empty",
  50. "type": "string"
  51. },
  52. "created": {
  53. "readOnly": true,
  54. "type": "string"
  55. },
  56. "owner": {
  57. "readOnly": true,
  58. "description": "Username of document owner",
  59. "type": "string"
  60. },
  61. "status": {
  62. "readOnly": true,
  63. "description": "Status of document",
  64. "type": "string",
  65. "enum": [
  66. "nodata",
  67. "inprogress",
  68. "deleted",
  69. "ok"
  70. ]
  71. },
  72. "language": {
  73. "readOnly": true,
  74. "description": "Languages in document in order of importance",
  75. "type": "array",
  76. "items": {
  77. "type": "object",
  78. "properties": {
  79. },
  80. "enum": [
  81. "en",
  82. "de",
  83. "it",
  84. "fr"
  85. ]
  86. }
  87. }
  88. }
  89. },
  90. "document": {
  91. "description": "Document object",
  92. "type": "object",
  93. "properties": {
  94. "id": {
  95. "readOnly": true,
  96. "type": "integer",
  97. "minimum": 0,
  98. "maximum": 18446744073709551615
  99. },
  100. "pageId": {
  101. "readOnly": true,
  102. "description": "Link to PageIds",
  103. "type": "array",
  104. "items": {
  105. "type": "integer",
  106. "minimum": 0,
  107. "maximum": 18446744073709551615
  108. }
  109. },
  110. "primaryPage": {
  111. "readOnly": true,
  112. "description": "Which page is the default page",
  113. "type": "string"
  114. },
  115. "name": {
  116. "readOnly": false,
  117. "description": "Document name, may be empty",
  118. "type": "string"
  119. },
  120. "created": {
  121. "readOnly": true,
  122. "type": "integer",
  123. "minimum": 0,
  124. "maximum": 18446744073709551615
  125. },
  126. "owner": {
  127. "readOnly": true,
  128. "description": "Username of document owner",
  129. "type": "string"
  130. },
  131. "status": {
  132. "readOnly": true,
  133. "description": "Status of document",
  134. "type": "string",
  135. "enum": [
  136. "nodata",
  137. "inprogress",
  138. "deleted",
  139. "ok"
  140. ]
  141. },
  142. "languages": {
  143. "readOnly": true,
  144. "description": "Languages in document in order of importance",
  145. "type": "array",
  146. "items": {
  147. "type": "string",
  148. "enum": [
  149. "en",
  150. "de",
  151. "it",
  152. "fr"
  153. ]
  154. }
  155. },
  156. "tags": {
  157. "readOnly": true,
  158. "description": "List of all tags",
  159. "type": "array",
  160. "items": {
  161. "type": "string"
  162. }
  163. }
  164. }
  165. },
  166. "tags": {
  167. "description": "Tag object",
  168. "type": "object",
  169. "properties": {
  170. "id": {
  171. "type": "string"
  172. },
  173. "name": {
  174. "type": "string"
  175. },
  176. "color": {
  177. "type": "string"
  178. }
  179. }
  180. },
  181. "tagslist": {
  182. "description": "array of tag objects",
  183. "type": "array",
  184. "items": {
  185. "$ref": "#/components/schemas/tags"
  186. }
  187. }
  188. },
  189. "parameters": {},
  190. "securitySchemes": {
  191. "basicAuth": {
  192. "type": "http",
  193. "scheme": "basic"
  194. }
  195. }
  196. },
  197. "security": [
  198. {
  199. "basicAuth": []
  200. }
  201. ],
  202. "paths": {
  203. "/tags": {
  204. "get": {
  205. "description": "Get tags list",
  206. "responses": {
  207. "200": {
  208. "description": "OK",
  209. "content": {
  210. "application/json": {
  211. "schema": {
  212. "$ref": "#/components/schemas/tagslist"
  213. }
  214. }
  215. }
  216. }
  217. }
  218. },
  219. "post": {
  220. "description": "Create a new tag",
  221. "parameters": [
  222. {
  223. "name": "tagName",
  224. "in": "query",
  225. "required": true,
  226. "schema": {
  227. "type": "string"
  228. }
  229. },
  230. {
  231. "name": "tagColor",
  232. "in": "query",
  233. "required": true,
  234. "schema": {
  235. "type": "string"
  236. }
  237. }
  238. ],
  239. "responses": {
  240. "200": {
  241. "description": "OK"
  242. }
  243. }
  244. }
  245. },
  246. "/tags/{tagId}": {
  247. "patch": {
  248. "description": "Update a tag",
  249. "parameters": [
  250. {
  251. "name": "tagId",
  252. "in": "path",
  253. "required": true,
  254. "schema": {
  255. "type": "string"
  256. }
  257. }
  258. ],
  259. "responses": {
  260. "200": {
  261. "description": "OK"
  262. }
  263. }
  264. },
  265. "delete": {
  266. "description": "Delete a tag",
  267. "parameters": [
  268. {
  269. "name": "tagId",
  270. "in": "path",
  271. "required": true,
  272. "schema": {
  273. "type": "string"
  274. }
  275. }
  276. ],
  277. "responses": {
  278. "200": {
  279. "description": "OK"
  280. }
  281. }
  282. }
  283. },
  284. "/documents": {
  285. "post": {
  286. "summary": "Create a new document",
  287. "tags": [
  288. "Create"
  289. ],
  290. "responses": {
  291. "200": {
  292. "description": "OK",
  293. "content": {
  294. "application/json": {
  295. "schema": {
  296. "$ref": "#/components/schemas/document"
  297. }
  298. }
  299. }
  300. }
  301. }
  302. },
  303. "get": {
  304. "summary": "Returns a list of documents",
  305. "tags": [
  306. "Objects"
  307. ],
  308. "parameters": [
  309. {
  310. "in": "query",
  311. "name": "pageSize",
  312. "schema": {
  313. "type": "integer",
  314. "minimum": 0,
  315. "maximum": 1000,
  316. "default": 50
  317. }
  318. },
  319. {
  320. "in": "query",
  321. "name": "pageIndex",
  322. "schema": {
  323. "type": "integer",
  324. "minimum": 0,
  325. "maximum": 65535,
  326. "default": 0
  327. }
  328. },
  329. {
  330. "in": "query",
  331. "name": "filterLanguage",
  332. "schema": {
  333. "type": "array",
  334. "items": {
  335. "type": "string",
  336. "enum": [
  337. "fr",
  338. "de",
  339. "it",
  340. "en"
  341. ]
  342. }
  343. }
  344. },
  345. {
  346. "in": "query",
  347. "name": "filterKeyword",
  348. "schema": {
  349. "type": "array",
  350. "items": {
  351. "type": "string"
  352. }
  353. }
  354. },
  355. {
  356. "in": "query",
  357. "name": "filterTag",
  358. "schema": {
  359. "type": "array",
  360. "items": {
  361. "type": "string"
  362. }
  363. }
  364. }
  365. ],
  366. "responses": {
  367. "200": {
  368. "description": "OK",
  369. "content": {
  370. "application/json": {
  371. "schema": {
  372. "type": "array",
  373. "items": {
  374. "$ref": "#/components/schemas/document"
  375. }
  376. }
  377. }
  378. }
  379. }
  380. }
  381. }
  382. },
  383. "/documents/{documentId}": {
  384. "patch": {
  385. "summary": "Manipulate document properties",
  386. "tags": [
  387. "Properties"
  388. ],
  389. "parameters": [
  390. {
  391. "in": "path",
  392. "name": "documentId",
  393. "required": true,
  394. "schema": {
  395. "type": "integer",
  396. "minimum": 0,
  397. "maximum": 18446744073709551615
  398. }
  399. },
  400. {
  401. "in": "query",
  402. "name": "addTags",
  403. "required": false,
  404. "schema": {
  405. "type": "array",
  406. "maxItems": 64,
  407. "items": {
  408. "type": "string",
  409. "minLength": 1,
  410. "maxLength": 64
  411. }
  412. }
  413. },
  414. {
  415. "in": "query",
  416. "name": "deleteTags",
  417. "required": false,
  418. "schema": {
  419. "type": "array",
  420. "maxItems": 64,
  421. "items": {
  422. "type": "string",
  423. "minLength": 1,
  424. "maxLength": 64
  425. }
  426. }
  427. },
  428. {
  429. "in": "query",
  430. "name": "name",
  431. "required": false,
  432. "schema": {
  433. "type": "string"
  434. }
  435. }
  436. ],
  437. "responses": {
  438. "200": {
  439. "description": "OK"
  440. }
  441. }
  442. },
  443. "get": {
  444. "summary": "retrieve a document meta data",
  445. "tags": [
  446. "Objects"
  447. ],
  448. "parameters": [
  449. {
  450. "in": "path",
  451. "name": "documentId",
  452. "required": true,
  453. "schema": {
  454. "type": "integer",
  455. "minimum": 0,
  456. "maximum": 18446744073709551615
  457. }
  458. }
  459. ],
  460. "responses": {
  461. "200": {
  462. "description": "OK",
  463. "content": {
  464. "application/json": {
  465. "schema": {
  466. "$ref": "#/components/schemas/document"
  467. }
  468. }
  469. }
  470. },
  471. "404": {
  472. "description": "Document not found"
  473. }
  474. }
  475. }
  476. },
  477. "/documents/{documentId}/image": {
  478. "get": {
  479. "summary": "Get an image or thumbnail of the document",
  480. "tags": [
  481. "Images"
  482. ],
  483. "parameters": [
  484. {
  485. "in": "path",
  486. "name": "documentId",
  487. "required": true,
  488. "schema": {
  489. "type": "integer",
  490. "minimum": 0,
  491. "maximum": 18446744073709551615
  492. }
  493. },
  494. {
  495. "in": "query",
  496. "name": "maxWidth",
  497. "schema": {
  498. "type": "integer",
  499. "minimum": 1,
  500. "maximum": 10000
  501. }
  502. },
  503. {
  504. "in": "query",
  505. "name": "maxHeight",
  506. "schema": {
  507. "type": "integer",
  508. "minimum": 1,
  509. "maximum": 10000
  510. }
  511. }
  512. ],
  513. "responses": {
  514. "200": {
  515. "description": "OK",
  516. "content": {
  517. "image/*": {
  518. "schema": {
  519. "type": "string",
  520. "format": "binary"
  521. }
  522. }
  523. }
  524. }
  525. }
  526. }
  527. },
  528. "/documents/{documentId}/data": {
  529. "post": {
  530. "summary": "Add one (or multiple if PDF) page to the document",
  531. "tags": [
  532. "Create"
  533. ],
  534. "parameters": [
  535. {
  536. "in": "path",
  537. "name": "documentId",
  538. "required": true,
  539. "schema": {
  540. "type": "integer",
  541. "minimum": 0,
  542. "maximum": 18446744073709551615
  543. }
  544. }
  545. ],
  546. "requestBody": {
  547. "content": {
  548. "image/png": {
  549. "schema": {
  550. "type": "string",
  551. "format": "binary"
  552. }
  553. },
  554. "image/jpeg": {
  555. "schema": {
  556. "type": "string",
  557. "format": "binary"
  558. }
  559. },
  560. "application/pdf": {
  561. "schema": {
  562. "type": "string",
  563. "format": "binary"
  564. }
  565. }
  566. }
  567. },
  568. "responses": {
  569. "200": {
  570. "description": "OK"
  571. }
  572. }
  573. }
  574. },
  575. "/pages/{pageId}": {
  576. "get": {
  577. "summary": "Get page properties",
  578. "tags": [
  579. "Objects"
  580. ],
  581. "parameters": [
  582. {
  583. "in": "path",
  584. "name": "pageId",
  585. "required": true,
  586. "schema": {
  587. "type": "integer",
  588. "minimum": 0,
  589. "maximum": 18446744073709551615
  590. }
  591. }
  592. ],
  593. "responses": {
  594. "200": {
  595. "description": "OK",
  596. "content": {
  597. "application/json": {
  598. "schema": {
  599. "$ref": "#/components/schemas/page"
  600. }
  601. }
  602. }
  603. }
  604. }
  605. }
  606. },
  607. "/pages/{pageId}/image": {
  608. "get": {
  609. "summary": "get an image or thumbnail of the page",
  610. "tags": [
  611. "Images"
  612. ],
  613. "parameters": [
  614. {
  615. "in": "path",
  616. "name": "pageId",
  617. "required": true,
  618. "schema": {
  619. "type": "integer",
  620. "minimum": 0,
  621. "maximum": 18446744073709551615
  622. }
  623. },
  624. {
  625. "in": "query",
  626. "name": "maxWidth",
  627. "schema": {
  628. "type": "integer",
  629. "minimum": 1,
  630. "maximum": 10000
  631. }
  632. },
  633. {
  634. "in": "query",
  635. "name": "maxHeight",
  636. "schema": {
  637. "type": "integer",
  638. "minimum": 1,
  639. "maximum": 10000
  640. }
  641. }
  642. ],
  643. "responses": {
  644. "200": {
  645. "description": "OK",
  646. "content": {
  647. "image/*": {
  648. "schema": {
  649. "type": "string",
  650. "format": "binary"
  651. }
  652. }
  653. }
  654. }
  655. }
  656. }
  657. }
  658. }
  659. }