api_data.js 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356
  1. define({ "api": [
  2. {
  3. "type": "post",
  4. "url": "/accounts",
  5. "title": "Create account",
  6. "version": "1.0.0",
  7. "name": "Create_account",
  8. "group": "Accounts",
  9. "parameter": {
  10. "fields": {
  11. "Parameter": [
  12. {
  13. "group": "Parameter",
  14. "type": "<p>String</p> ",
  15. "optional": false,
  16. "field": "name",
  17. "description": "<p>Name for the new account</p> "
  18. },
  19. {
  20. "group": "Parameter",
  21. "type": "<p>String</p> ",
  22. "optional": false,
  23. "field": "reference",
  24. "description": "<p>A reference (bank account number) for the new account</p> "
  25. }
  26. ]
  27. },
  28. "examples": [
  29. {
  30. "title": "Request-Example: ",
  31. "content": "{\n name: 'Home',\n reference: '1234567890'\n}",
  32. "type": "json"
  33. }
  34. ]
  35. },
  36. "header": {
  37. "fields": {
  38. "Header": [
  39. {
  40. "group": "Header",
  41. "type": "String",
  42. "optional": false,
  43. "field": "Content-Type",
  44. "description": "<p>application/json</p> "
  45. },
  46. {
  47. "group": "Header",
  48. "type": "String",
  49. "optional": false,
  50. "field": "Authorization",
  51. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  52. }
  53. ]
  54. },
  55. "examples": [
  56. {
  57. "title": "Authorization header example:",
  58. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  59. "type": "string"
  60. }
  61. ]
  62. },
  63. "error": {
  64. "fields": {
  65. "400": [
  66. {
  67. "group": "400",
  68. "type": "<p>json</p> ",
  69. "optional": false,
  70. "field": "BadRequest",
  71. "description": "<p>The user can't be found.</p> "
  72. }
  73. ],
  74. "401": [
  75. {
  76. "group": "401",
  77. "type": "<p>json</p> ",
  78. "optional": false,
  79. "field": "AuthenticationFailed",
  80. "description": "<p>The user can't be found.</p> "
  81. }
  82. ]
  83. },
  84. "examples": [
  85. {
  86. "title": "AuthenticationFailed:",
  87. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  88. "type": "json"
  89. },
  90. {
  91. "title": "BadRequest:",
  92. "content": "HTTP/1.1 400 Bad Request\n [\n {\n \"field\": \"name\",\n \"rule\": \"required\",\n \"message\": \"Path `name` is required.\"\n }\n ]",
  93. "type": "json"
  94. }
  95. ]
  96. },
  97. "success": {
  98. "fields": {
  99. "201": [
  100. {
  101. "group": "201",
  102. "type": "<p>Object</p> ",
  103. "optional": false,
  104. "field": "account",
  105. "description": "<p>The new account with its (sub)categories.</p> "
  106. }
  107. ]
  108. },
  109. "examples": [
  110. {
  111. "title": "Success-Response:",
  112. "content": "HTTP/1.1 201 Created\n {\n \"name\": \"Home\",\n \"reference\": \"1234567890\",\n \"user_id\": \"55e6e4e005230f49271c7078\",\n \"_id\": \"55e8218912c65a1730c34858\",\n \"created_at\": \"2015-09-03T10:31:37.889Z\",\n \"categories\": [\n {\n \"key\": \"alimony_payments\",\n \"label\": \"Alimony Payments\",\n \"_id\": \"55e8218912c65a1730c34859\",\n \"sub_categories\": []\n },\n {\n \"key\": \"automobile_expenses\",\n \"label\": \"Automobile Expenses\",\n \"_id\": \"55e8218912c65a1730c3485a\",\n \"sub_categories\": [\n {\n \"label\": \"Car Payment\",\n \"key\": \"car_payment\",\n \"_id\": \"55e8218912c65a1730c3485d\"\n }\n ]\n }\n ]\n }",
  113. "type": "json"
  114. }
  115. ]
  116. },
  117. "filename": "app/routes/accounts.js",
  118. "groupTitle": "Accounts"
  119. },
  120. {
  121. "type": "delete",
  122. "url": "/accounts/:account_id",
  123. "title": "Delete account",
  124. "version": "1.0.0",
  125. "name": "Delete_account",
  126. "group": "Accounts",
  127. "parameter": {
  128. "fields": {
  129. "Parameter": [
  130. {
  131. "group": "Parameter",
  132. "type": "<p>String</p> ",
  133. "optional": false,
  134. "field": "account_id",
  135. "description": "<p>The account to delete</p> "
  136. }
  137. ]
  138. }
  139. },
  140. "header": {
  141. "fields": {
  142. "Header": [
  143. {
  144. "group": "Header",
  145. "type": "String",
  146. "optional": false,
  147. "field": "Authorization",
  148. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  149. }
  150. ]
  151. },
  152. "examples": [
  153. {
  154. "title": "Authorization header example:",
  155. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  156. "type": "string"
  157. }
  158. ]
  159. },
  160. "error": {
  161. "fields": {
  162. "401": [
  163. {
  164. "group": "401",
  165. "type": "<p>json</p> ",
  166. "optional": false,
  167. "field": "AuthenticationFailed",
  168. "description": "<p>The user can't be found.</p> "
  169. }
  170. ],
  171. "404": [
  172. {
  173. "group": "404",
  174. "type": "<p>json</p> ",
  175. "optional": false,
  176. "field": "AccountNotFound",
  177. "description": "<p>The account can't be found.</p> "
  178. }
  179. ]
  180. },
  181. "examples": [
  182. {
  183. "title": "AuthenticationFailed:",
  184. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  185. "type": "json"
  186. },
  187. {
  188. "title": "AccountNotFound:",
  189. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  190. "type": "json"
  191. }
  192. ]
  193. },
  194. "success": {
  195. "fields": {
  196. "204": [
  197. {
  198. "group": "204",
  199. "optional": false,
  200. "field": "-",
  201. "description": ""
  202. }
  203. ]
  204. },
  205. "examples": [
  206. {
  207. "title": "Success-Response:",
  208. "content": "HTTP/1.1 204 No Content",
  209. "type": "json"
  210. }
  211. ]
  212. },
  213. "filename": "app/routes/accounts.js",
  214. "groupTitle": "Accounts"
  215. },
  216. {
  217. "type": "get",
  218. "url": "/accounts/:account_id",
  219. "title": "Get account",
  220. "version": "1.0.0",
  221. "name": "Get_account",
  222. "group": "Accounts",
  223. "parameter": {
  224. "fields": {
  225. "Parameter": [
  226. {
  227. "group": "Parameter",
  228. "type": "<p>String</p> ",
  229. "optional": false,
  230. "field": "account_id",
  231. "description": "<p>The given account</p> "
  232. }
  233. ]
  234. }
  235. },
  236. "header": {
  237. "fields": {
  238. "Header": [
  239. {
  240. "group": "Header",
  241. "type": "String",
  242. "optional": false,
  243. "field": "Content-Type",
  244. "description": "<p>application/json</p> "
  245. },
  246. {
  247. "group": "Header",
  248. "type": "String",
  249. "optional": false,
  250. "field": "Authorization",
  251. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  252. }
  253. ]
  254. },
  255. "examples": [
  256. {
  257. "title": "Authorization header example:",
  258. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  259. "type": "string"
  260. }
  261. ]
  262. },
  263. "error": {
  264. "fields": {
  265. "401": [
  266. {
  267. "group": "401",
  268. "type": "<p>json</p> ",
  269. "optional": false,
  270. "field": "AuthenticationFailed",
  271. "description": "<p>The user can't be found.</p> "
  272. }
  273. ],
  274. "404": [
  275. {
  276. "group": "404",
  277. "type": "<p>json</p> ",
  278. "optional": false,
  279. "field": "AccountNotFound",
  280. "description": "<p>The account can't be found.</p> "
  281. }
  282. ]
  283. },
  284. "examples": [
  285. {
  286. "title": "AuthenticationFailed:",
  287. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  288. "type": "json"
  289. },
  290. {
  291. "title": "AccountNotFound:",
  292. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  293. "type": "json"
  294. }
  295. ]
  296. },
  297. "success": {
  298. "fields": {
  299. "200": [
  300. {
  301. "group": "200",
  302. "type": "<p>Object</p> ",
  303. "optional": false,
  304. "field": "account",
  305. "description": "<p>The account with its (sub)categories.</p> "
  306. }
  307. ]
  308. },
  309. "examples": [
  310. {
  311. "title": "Success-Response:",
  312. "content": "HTTP/1.1 200 OK\n {\n \"name\": \"Home\",\n \"reference\": \"1234567890\",\n \"user_id\": \"55e6e4e005230f49271c7078\",\n \"_id\": \"55e8218912c65a1730c34858\",\n \"created_at\": \"2015-09-03T10:31:37.889Z\",\n \"categories\": [\n {\n \"key\": \"alimony_payments\",\n \"label\": \"Alimony Payments\",\n \"_id\": \"55e8218912c65a1730c34859\",\n \"sub_categories\": []\n },\n {\n \"key\": \"automobile_expenses\",\n \"label\": \"Automobile Expenses\",\n \"_id\": \"55e8218912c65a1730c3485a\",\n \"sub_categories\": [\n {\n \"label\": \"Car Payment\",\n \"key\": \"car_payment\",\n \"_id\": \"55e8218912c65a1730c3485d\"\n }\n ]\n }\n ]\n }",
  313. "type": "json"
  314. }
  315. ]
  316. },
  317. "filename": "app/routes/accounts.js",
  318. "groupTitle": "Accounts"
  319. },
  320. {
  321. "type": "put",
  322. "url": "/accounts/:account_id",
  323. "title": "Modify account",
  324. "version": "1.0.0",
  325. "name": "Modify_account",
  326. "group": "Accounts",
  327. "parameter": {
  328. "fields": {
  329. "Parameter": [
  330. {
  331. "group": "Parameter",
  332. "type": "<p>String</p> ",
  333. "optional": false,
  334. "field": "account_id",
  335. "description": "<p>The account id to modify</p> "
  336. },
  337. {
  338. "group": "Parameter",
  339. "type": "<p>String</p> ",
  340. "optional": false,
  341. "field": "name",
  342. "description": "<p>Name for the new account</p> "
  343. },
  344. {
  345. "group": "Parameter",
  346. "type": "<p>String</p> ",
  347. "optional": false,
  348. "field": "reference",
  349. "description": "<p>A reference (bank account number) for the new account</p> "
  350. }
  351. ]
  352. },
  353. "examples": [
  354. {
  355. "title": "Request-Example: ",
  356. "content": "{\n name: 'Home',\n reference: '1234567890'\n}",
  357. "type": "json"
  358. }
  359. ]
  360. },
  361. "header": {
  362. "fields": {
  363. "Header": [
  364. {
  365. "group": "Header",
  366. "type": "String",
  367. "optional": false,
  368. "field": "Content-Type",
  369. "description": "<p>application/json</p> "
  370. },
  371. {
  372. "group": "Header",
  373. "type": "String",
  374. "optional": false,
  375. "field": "Authorization",
  376. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  377. }
  378. ]
  379. },
  380. "examples": [
  381. {
  382. "title": "Authorization header example:",
  383. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  384. "type": "string"
  385. }
  386. ]
  387. },
  388. "error": {
  389. "fields": {
  390. "400": [
  391. {
  392. "group": "400",
  393. "type": "<p>json</p> ",
  394. "optional": false,
  395. "field": "BadRequest",
  396. "description": "<p>The user can't be found.</p> "
  397. }
  398. ],
  399. "401": [
  400. {
  401. "group": "401",
  402. "type": "<p>json</p> ",
  403. "optional": false,
  404. "field": "AuthenticationFailed",
  405. "description": "<p>The user can't be found.</p> "
  406. }
  407. ],
  408. "404": [
  409. {
  410. "group": "404",
  411. "type": "<p>json</p> ",
  412. "optional": false,
  413. "field": "AccountNotFound",
  414. "description": "<p>The account can't be found.</p> "
  415. }
  416. ]
  417. },
  418. "examples": [
  419. {
  420. "title": "AuthenticationFailed:",
  421. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  422. "type": "json"
  423. },
  424. {
  425. "title": "BadRequest:",
  426. "content": "HTTP/1.1 400 Bad Request\n [\n {\n \"field\": \"name\",\n \"rule\": \"required\",\n \"message\": \"Path `name` is required.\"\n }\n ]",
  427. "type": "json"
  428. },
  429. {
  430. "title": "AccountNotFound:",
  431. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  432. "type": "json"
  433. }
  434. ]
  435. },
  436. "success": {
  437. "fields": {
  438. "Success 200": [
  439. {
  440. "group": "Success 200",
  441. "type": "<p>String</p> ",
  442. "optional": false,
  443. "field": "username",
  444. "description": "<p>Username of the User.</p> "
  445. },
  446. {
  447. "group": "Success 200",
  448. "type": "<p>String</p> ",
  449. "optional": false,
  450. "field": "token",
  451. "description": "<p>The JWT valid token.</p> "
  452. }
  453. ]
  454. },
  455. "examples": [
  456. {
  457. "title": "Success-Response:",
  458. "content": "HTTP/1.1 200 OK\n {\n \"name\": \"Home\",\n \"reference\": \"1234567890\",\n \"user_id\": \"55e6e4e005230f49271c7078\",\n \"_id\": \"55e8218912c65a1730c34858\",\n \"created_at\": \"2015-09-03T10:31:37.889Z\",\n \"categories\": [\n {\n \"key\": \"alimony_payments\",\n \"label\": \"Alimony Payments\",\n \"_id\": \"55e8218912c65a1730c34859\",\n \"sub_categories\": []\n },\n {\n \"key\": \"automobile_expenses\",\n \"label\": \"Automobile Expenses\",\n \"_id\": \"55e8218912c65a1730c3485a\",\n \"sub_categories\": [\n {\n \"label\": \"Car Payment\",\n \"key\": \"car_payment\",\n \"_id\": \"55e8218912c65a1730c3485d\"\n }\n ]\n }\n ]\n }",
  459. "type": "json"
  460. }
  461. ]
  462. },
  463. "filename": "app/routes/accounts.js",
  464. "groupTitle": "Accounts"
  465. },
  466. {
  467. "type": "get",
  468. "url": "/accounts",
  469. "title": "List accounts",
  470. "version": "1.0.0",
  471. "name": "Retrieve_accounts",
  472. "group": "Accounts",
  473. "header": {
  474. "fields": {
  475. "Header": [
  476. {
  477. "group": "Header",
  478. "type": "String",
  479. "optional": false,
  480. "field": "Content-Type",
  481. "description": "<p>application/json</p> "
  482. },
  483. {
  484. "group": "Header",
  485. "type": "String",
  486. "optional": false,
  487. "field": "Authorization",
  488. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  489. }
  490. ]
  491. },
  492. "examples": [
  493. {
  494. "title": "Authorization header example:",
  495. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  496. "type": "string"
  497. }
  498. ]
  499. },
  500. "error": {
  501. "fields": {
  502. "401": [
  503. {
  504. "group": "401",
  505. "type": "<p>json</p> ",
  506. "optional": false,
  507. "field": "AuthenticationFailed",
  508. "description": "<p>The user can't be found.</p> "
  509. }
  510. ]
  511. },
  512. "examples": [
  513. {
  514. "title": "AuthenticationFailed:",
  515. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  516. "type": "json"
  517. }
  518. ]
  519. },
  520. "success": {
  521. "fields": {
  522. "200": [
  523. {
  524. "group": "200",
  525. "type": "<p>json</p> ",
  526. "optional": false,
  527. "field": "accounts",
  528. "description": "<p>List of all accounts and their (sub)categories.</p> "
  529. }
  530. ]
  531. },
  532. "examples": [
  533. {
  534. "title": "Success-Response:",
  535. "content": "HTTP/1.1 200 OK\n [{\n \"name\": \"Home\",\n \"reference\": \"1234567890\",\n \"user_id\": \"55e6e4e005230f49271c7078\",\n \"_id\": \"55e8218912c65a1730c34858\",\n \"created_at\": \"2015-09-03T10:31:37.889Z\",\n \"categories\": [\n {\n \"key\": \"alimony_payments\",\n \"label\": \"Alimony Payments\",\n \"_id\": \"55e8218912c65a1730c34859\",\n \"sub_categories\": []\n },\n {\n \"key\": \"automobile_expenses\",\n \"label\": \"Automobile Expenses\",\n \"_id\": \"55e8218912c65a1730c3485a\",\n \"sub_categories\": [\n {\n \"label\": \"Car Payment\",\n \"key\": \"car_payment\",\n \"_id\": \"55e8218912c65a1730c3485d\"\n }\n ]\n }\n ]\n }]",
  536. "type": "json"
  537. }
  538. ]
  539. },
  540. "filename": "app/routes/accounts.js",
  541. "groupTitle": "Accounts"
  542. },
  543. {
  544. "type": "post",
  545. "url": "/accounts/:account_id/entries",
  546. "title": "Create entry",
  547. "version": "1.0.0",
  548. "name": "Create_entry",
  549. "group": "Entries",
  550. "parameter": {
  551. "fields": {
  552. "Parameter": [
  553. {
  554. "group": "Parameter",
  555. "type": "<p>String</p> ",
  556. "optional": false,
  557. "field": "account_id",
  558. "description": "<p>The account id to populate</p> "
  559. },
  560. {
  561. "group": "Parameter",
  562. "type": "<p>String</p> ",
  563. "optional": false,
  564. "field": "amount",
  565. "description": "<p>Amount of the entry</p> "
  566. },
  567. {
  568. "group": "Parameter",
  569. "type": "<p>String</p> ",
  570. "optional": false,
  571. "field": "date",
  572. "description": "<p>Date of the bill/deposit</p> "
  573. },
  574. {
  575. "group": "Parameter",
  576. "type": "<p>String</p> ",
  577. "optional": true,
  578. "field": "category",
  579. "description": "<p>Category id of the bill/deposit</p> "
  580. },
  581. {
  582. "group": "Parameter",
  583. "type": "<p>String</p> ",
  584. "optional": true,
  585. "field": "sub_category",
  586. "description": "<p>Sub category id of the bill/deposit</p> "
  587. },
  588. {
  589. "group": "Parameter",
  590. "type": "<p>String</p> ",
  591. "optional": true,
  592. "field": "label",
  593. "description": "<p>A label for the entry</p> "
  594. }
  595. ]
  596. },
  597. "examples": [
  598. {
  599. "title": "Request-Example: ",
  600. "content": "{\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n}",
  601. "type": "json"
  602. }
  603. ]
  604. },
  605. "header": {
  606. "fields": {
  607. "Header": [
  608. {
  609. "group": "Header",
  610. "type": "String",
  611. "optional": false,
  612. "field": "Content-Type",
  613. "description": "<p>application/json</p> "
  614. },
  615. {
  616. "group": "Header",
  617. "type": "String",
  618. "optional": false,
  619. "field": "Authorization",
  620. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  621. }
  622. ]
  623. },
  624. "examples": [
  625. {
  626. "title": "Authorization header example:",
  627. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  628. "type": "string"
  629. }
  630. ]
  631. },
  632. "error": {
  633. "fields": {
  634. "400": [
  635. {
  636. "group": "400",
  637. "type": "<p>json</p> ",
  638. "optional": false,
  639. "field": "BadRequest",
  640. "description": "<p>The user can't be found.</p> "
  641. }
  642. ],
  643. "401": [
  644. {
  645. "group": "401",
  646. "type": "<p>json</p> ",
  647. "optional": false,
  648. "field": "AuthenticationFailed",
  649. "description": "<p>The user can't be found.</p> "
  650. }
  651. ],
  652. "404": [
  653. {
  654. "group": "404",
  655. "type": "<p>json</p> ",
  656. "optional": false,
  657. "field": "AccountNotFound",
  658. "description": "<p>The account can't be found.</p> "
  659. }
  660. ]
  661. },
  662. "examples": [
  663. {
  664. "title": "AuthenticationFailed:",
  665. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  666. "type": "json"
  667. },
  668. {
  669. "title": "BadRequest:",
  670. "content": "HTTP/1.1 400 Bad Request\n [\n {\n \"field\": \"amount\",\n \"rule\": \"required\",\n \"message\": \"Path `amount` is required.\"\n }\n ]",
  671. "type": "json"
  672. },
  673. {
  674. "title": "AccountNotFound:",
  675. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  676. "type": "json"
  677. }
  678. ]
  679. },
  680. "success": {
  681. "fields": {
  682. "201": [
  683. {
  684. "group": "201",
  685. "type": "<p>Object</p> ",
  686. "optional": false,
  687. "field": "entry",
  688. "description": "<p>The created entry.</p> "
  689. },
  690. {
  691. "group": "201",
  692. "type": "<p>Object[]</p> ",
  693. "optional": false,
  694. "field": "entries",
  695. "description": "<p>All account's entries</p> "
  696. },
  697. {
  698. "group": "201",
  699. "type": "<p>Number</p> ",
  700. "optional": false,
  701. "field": "balance",
  702. "description": "<p>The account's total balance</p> "
  703. }
  704. ]
  705. },
  706. "examples": [
  707. {
  708. "title": "Success-Response:",
  709. "content": " HTTP/1.1 201 Created\n{\n entry: {\n _id: '',\n account_id: '1000',\n type: 'DEPOSIT'\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n },\n entries: [\n {\n _id: '',\n account_id: '1000',\n type: 'DEPOSIT'\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n }\n ],\n balance: 1000\n}",
  710. "type": "json"
  711. }
  712. ]
  713. },
  714. "filename": "app/routes/accounts.js",
  715. "groupTitle": "Entries"
  716. },
  717. {
  718. "type": "delete",
  719. "url": "/accounts/:account_id/entries/:entry_id",
  720. "title": "Delete entry",
  721. "version": "1.0.0",
  722. "name": "Delete_entry",
  723. "group": "Entries",
  724. "parameter": {
  725. "fields": {
  726. "Parameter": [
  727. {
  728. "group": "Parameter",
  729. "type": "<p>String</p> ",
  730. "optional": false,
  731. "field": "account_id",
  732. "description": "<p>The owner account</p> "
  733. },
  734. {
  735. "group": "Parameter",
  736. "type": "<p>String</p> ",
  737. "optional": false,
  738. "field": "entry_id",
  739. "description": "<p>The entry to delete</p> "
  740. }
  741. ]
  742. }
  743. },
  744. "header": {
  745. "fields": {
  746. "Header": [
  747. {
  748. "group": "Header",
  749. "type": "String",
  750. "optional": false,
  751. "field": "Authorization",
  752. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  753. }
  754. ]
  755. },
  756. "examples": [
  757. {
  758. "title": "Authorization header example:",
  759. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  760. "type": "string"
  761. }
  762. ]
  763. },
  764. "error": {
  765. "fields": {
  766. "401": [
  767. {
  768. "group": "401",
  769. "type": "<p>json</p> ",
  770. "optional": false,
  771. "field": "AuthenticationFailed",
  772. "description": "<p>The user can't be found.</p> "
  773. }
  774. ],
  775. "404": [
  776. {
  777. "group": "404",
  778. "type": "<p>json</p> ",
  779. "optional": false,
  780. "field": "AccountNotFound",
  781. "description": "<p>The account can't be found.</p> "
  782. },
  783. {
  784. "group": "404",
  785. "type": "<p>json</p> ",
  786. "optional": false,
  787. "field": "EntryNotFound",
  788. "description": "<p>The entry can't be found.</p> "
  789. }
  790. ]
  791. },
  792. "examples": [
  793. {
  794. "title": "AuthenticationFailed:",
  795. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  796. "type": "json"
  797. },
  798. {
  799. "title": "AccountNotFound:",
  800. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  801. "type": "json"
  802. },
  803. {
  804. "title": "AccountNotFound:",
  805. "content": "HTTP/1.1 404 Not Found",
  806. "type": "json"
  807. }
  808. ]
  809. },
  810. "success": {
  811. "fields": {
  812. "204": [
  813. {
  814. "group": "204",
  815. "optional": false,
  816. "field": "-",
  817. "description": ""
  818. }
  819. ]
  820. },
  821. "examples": [
  822. {
  823. "title": "Success-Response:",
  824. "content": "HTTP/1.1 204 No Content",
  825. "type": "json"
  826. }
  827. ]
  828. },
  829. "filename": "app/routes/accounts.js",
  830. "groupTitle": "Entries"
  831. },
  832. {
  833. "type": "post",
  834. "url": "/accounts/:account_id/entries/:entry_id",
  835. "title": "Modify entry",
  836. "version": "1.0.0",
  837. "name": "Modify_entry",
  838. "group": "Entries",
  839. "parameter": {
  840. "fields": {
  841. "Parameter": [
  842. {
  843. "group": "Parameter",
  844. "type": "<p>String</p> ",
  845. "optional": false,
  846. "field": "account_id",
  847. "description": "<p>The owner account</p> "
  848. },
  849. {
  850. "group": "Parameter",
  851. "type": "<p>String</p> ",
  852. "optional": false,
  853. "field": "entry_id",
  854. "description": "<p>The entry to modify</p> "
  855. },
  856. {
  857. "group": "Parameter",
  858. "type": "<p>String</p> ",
  859. "optional": false,
  860. "field": "amount",
  861. "description": "<p>Amount of the entry</p> "
  862. },
  863. {
  864. "group": "Parameter",
  865. "type": "<p>String</p> ",
  866. "optional": false,
  867. "field": "date",
  868. "description": "<p>Date of the bill/deposit</p> "
  869. },
  870. {
  871. "group": "Parameter",
  872. "type": "<p>String</p> ",
  873. "optional": true,
  874. "field": "category",
  875. "description": "<p>Category id of the bill/deposit</p> "
  876. },
  877. {
  878. "group": "Parameter",
  879. "type": "<p>String</p> ",
  880. "optional": true,
  881. "field": "sub_category",
  882. "description": "<p>Sub category id of the bill/deposit</p> "
  883. },
  884. {
  885. "group": "Parameter",
  886. "type": "<p>String</p> ",
  887. "optional": true,
  888. "field": "label",
  889. "description": "<p>A label for the entry</p> "
  890. }
  891. ]
  892. },
  893. "examples": [
  894. {
  895. "title": "Request-Example: ",
  896. "content": "{\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n}",
  897. "type": "json"
  898. }
  899. ]
  900. },
  901. "header": {
  902. "fields": {
  903. "Header": [
  904. {
  905. "group": "Header",
  906. "type": "String",
  907. "optional": false,
  908. "field": "Content-Type",
  909. "description": "<p>application/json</p> "
  910. },
  911. {
  912. "group": "Header",
  913. "type": "String",
  914. "optional": false,
  915. "field": "Authorization",
  916. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  917. }
  918. ]
  919. },
  920. "examples": [
  921. {
  922. "title": "Authorization header example:",
  923. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  924. "type": "string"
  925. }
  926. ]
  927. },
  928. "error": {
  929. "fields": {
  930. "400": [
  931. {
  932. "group": "400",
  933. "type": "<p>json</p> ",
  934. "optional": false,
  935. "field": "BadRequest",
  936. "description": "<p>The user can't be found.</p> "
  937. }
  938. ],
  939. "401": [
  940. {
  941. "group": "401",
  942. "type": "<p>json</p> ",
  943. "optional": false,
  944. "field": "AuthenticationFailed",
  945. "description": "<p>The user can't be found.</p> "
  946. }
  947. ],
  948. "404": [
  949. {
  950. "group": "404",
  951. "type": "<p>json</p> ",
  952. "optional": false,
  953. "field": "AccountNotFound",
  954. "description": "<p>The account can't be found.</p> "
  955. },
  956. {
  957. "group": "404",
  958. "type": "<p>json</p> ",
  959. "optional": false,
  960. "field": "EntryNotFound",
  961. "description": "<p>The entry can't be found.</p> "
  962. }
  963. ]
  964. },
  965. "examples": [
  966. {
  967. "title": "AuthenticationFailed:",
  968. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  969. "type": "json"
  970. },
  971. {
  972. "title": "BadRequest:",
  973. "content": "HTTP/1.1 400 Bad Request\n [\n {\n \"field\": \"amount\",\n \"rule\": \"required\",\n \"message\": \"Path `amount` is required.\"\n }\n ]",
  974. "type": "json"
  975. },
  976. {
  977. "title": "AccountNotFound:",
  978. "content": "HTTP/1.1 404 Not Found\n {\n \"message\": \"Unknown account\"\n }",
  979. "type": "json"
  980. },
  981. {
  982. "title": "AccountNotFound:",
  983. "content": "HTTP/1.1 404 Not Found",
  984. "type": "json"
  985. }
  986. ]
  987. },
  988. "success": {
  989. "fields": {
  990. "200": [
  991. {
  992. "group": "200",
  993. "type": "<p>Object</p> ",
  994. "optional": false,
  995. "field": "entry",
  996. "description": "<p>The created entry.</p> "
  997. },
  998. {
  999. "group": "200",
  1000. "type": "<p>Object[]</p> ",
  1001. "optional": false,
  1002. "field": "entries",
  1003. "description": "<p>All account's entries</p> "
  1004. },
  1005. {
  1006. "group": "200",
  1007. "type": "<p>Number</p> ",
  1008. "optional": false,
  1009. "field": "balance",
  1010. "description": "<p>The account's total balance</p> "
  1011. }
  1012. ]
  1013. },
  1014. "examples": [
  1015. {
  1016. "title": "Success-Response:",
  1017. "content": " HTTP/1.1 200 OK\n{\n entry: {\n _id: '',\n account_id: '1000',\n type: 'DEPOSIT'\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n },\n entries: [\n {\n _id: '',\n account_id: '1000',\n type: 'DEPOSIT'\n amount: 1000,\n date: 2015-09-03T10:04:11.481Z\n }\n ],\n balance: 1000\n}",
  1018. "type": "json"
  1019. }
  1020. ]
  1021. },
  1022. "filename": "app/routes/accounts.js",
  1023. "groupTitle": "Entries"
  1024. },
  1025. {
  1026. "type": "post",
  1027. "url": "/users/login",
  1028. "title": "Login",
  1029. "version": "1.0.0",
  1030. "name": "Login",
  1031. "group": "Users",
  1032. "header": {
  1033. "fields": {
  1034. "Header": [
  1035. {
  1036. "group": "Header",
  1037. "type": "String",
  1038. "optional": false,
  1039. "field": "Content-Type",
  1040. "description": "<p>application/json</p> "
  1041. }
  1042. ]
  1043. }
  1044. },
  1045. "parameter": {
  1046. "fields": {
  1047. "Parameter": [
  1048. {
  1049. "group": "Parameter",
  1050. "type": "<p>String</p> ",
  1051. "optional": false,
  1052. "field": "username",
  1053. "description": "<p>User's username</p> "
  1054. },
  1055. {
  1056. "group": "Parameter",
  1057. "type": "<p>String</p> ",
  1058. "optional": false,
  1059. "field": "password",
  1060. "description": "<p>User's password</p> "
  1061. }
  1062. ]
  1063. },
  1064. "examples": [
  1065. {
  1066. "title": "Request-Example: ",
  1067. "content": "{ \n \"username\": \"John\", \n \"password\": \"s3cr3t\" \n}",
  1068. "type": "json"
  1069. }
  1070. ]
  1071. },
  1072. "success": {
  1073. "fields": {
  1074. "Success 200": [
  1075. {
  1076. "group": "Success 200",
  1077. "type": "<p>String</p> ",
  1078. "optional": false,
  1079. "field": "username",
  1080. "description": "<p>Username of the User.</p> "
  1081. },
  1082. {
  1083. "group": "Success 200",
  1084. "type": "<p>String</p> ",
  1085. "optional": false,
  1086. "field": "token",
  1087. "description": "<p>The JWT valid token.</p> "
  1088. }
  1089. ]
  1090. },
  1091. "examples": [
  1092. {
  1093. "title": "Success-Response:",
  1094. "content": "HTTP/1.1 200 OK\n{\n \"username\": \"John\",\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"\n}",
  1095. "type": "json"
  1096. }
  1097. ]
  1098. },
  1099. "error": {
  1100. "fields": {
  1101. "401": [
  1102. {
  1103. "group": "401",
  1104. "type": "<p>json</p> ",
  1105. "optional": false,
  1106. "field": "AuthenticationFailed",
  1107. "description": "<p>The user can't be found.</p> "
  1108. }
  1109. ]
  1110. },
  1111. "examples": [
  1112. {
  1113. "title": "AuthenticationFailed:",
  1114. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  1115. "type": "json"
  1116. }
  1117. ]
  1118. },
  1119. "filename": "app/routes/users.js",
  1120. "groupTitle": "Users"
  1121. },
  1122. {
  1123. "type": "delete",
  1124. "url": "/users/login",
  1125. "title": "Logout",
  1126. "version": "1.0.0",
  1127. "name": "Logout",
  1128. "group": "Users",
  1129. "header": {
  1130. "fields": {
  1131. "Header": [
  1132. {
  1133. "group": "Header",
  1134. "type": "String",
  1135. "optional": false,
  1136. "field": "Authorization",
  1137. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  1138. }
  1139. ]
  1140. },
  1141. "examples": [
  1142. {
  1143. "title": "Authorization header example:",
  1144. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  1145. "type": "string"
  1146. }
  1147. ]
  1148. },
  1149. "success": {
  1150. "examples": [
  1151. {
  1152. "title": "Success-Response:",
  1153. "content": "HTTP/1.1 200 OK",
  1154. "type": "json"
  1155. }
  1156. ]
  1157. },
  1158. "filename": "app/routes/users.js",
  1159. "groupTitle": "Users"
  1160. },
  1161. {
  1162. "type": "post",
  1163. "url": "/users",
  1164. "title": "Registration",
  1165. "version": "1.0.0",
  1166. "name": "Registration",
  1167. "group": "Users",
  1168. "header": {
  1169. "fields": {
  1170. "Header": [
  1171. {
  1172. "group": "Header",
  1173. "type": "String",
  1174. "optional": false,
  1175. "field": "Content-Type",
  1176. "description": "<p>application/json</p> "
  1177. }
  1178. ]
  1179. }
  1180. },
  1181. "parameter": {
  1182. "fields": {
  1183. "Parameter": [
  1184. {
  1185. "group": "Parameter",
  1186. "type": "<p>String</p> ",
  1187. "optional": false,
  1188. "field": "username",
  1189. "description": "<p>User's username</p> "
  1190. },
  1191. {
  1192. "group": "Parameter",
  1193. "type": "<p>String</p> ",
  1194. "optional": false,
  1195. "field": "password",
  1196. "description": "<p>User's password</p> "
  1197. },
  1198. {
  1199. "group": "Parameter",
  1200. "type": "<p>String</p> ",
  1201. "optional": true,
  1202. "field": "language",
  1203. "defaultValue": "en",
  1204. "description": "<p>User's default language</p> "
  1205. }
  1206. ]
  1207. },
  1208. "examples": [
  1209. {
  1210. "title": "Request-Example: ",
  1211. "content": "{ \n \"username\": \"John\", \n \"password\": \"s3cr3t\",\n \"language\": \"en\"\n}",
  1212. "type": "json"
  1213. }
  1214. ]
  1215. },
  1216. "success": {
  1217. "fields": {
  1218. "201": [
  1219. {
  1220. "group": "201",
  1221. "type": "<p>String</p> ",
  1222. "optional": false,
  1223. "field": "username",
  1224. "description": "<p>Username of the User.</p> "
  1225. },
  1226. {
  1227. "group": "201",
  1228. "type": "<p>String</p> ",
  1229. "optional": false,
  1230. "field": "token",
  1231. "description": "<p>The JWT valid token.</p> "
  1232. }
  1233. ]
  1234. },
  1235. "examples": [
  1236. {
  1237. "title": "Success-Response:",
  1238. "content": "HTTP/1.1 201 OK\n{\n \"username\": \"John\",\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"\n}",
  1239. "type": "json"
  1240. }
  1241. ]
  1242. },
  1243. "error": {
  1244. "fields": {
  1245. "400": [
  1246. {
  1247. "group": "400",
  1248. "type": "<p>json</p> ",
  1249. "optional": false,
  1250. "field": "BadRequest",
  1251. "description": "<p>Validation errors.</p> "
  1252. }
  1253. ],
  1254. "409": [
  1255. {
  1256. "group": "409",
  1257. "type": "<p>json</p> ",
  1258. "optional": false,
  1259. "field": "UserAlreadyExist",
  1260. "description": "<p>The user can't be found.</p> "
  1261. }
  1262. ]
  1263. },
  1264. "examples": [
  1265. {
  1266. "title": "UserAlreadyExist:",
  1267. "content": "HTTP/1.1 409 Not Found\n{\n \"message\": \"Account already exists\"\n}",
  1268. "type": "json"
  1269. },
  1270. {
  1271. "title": "BadRequest:",
  1272. "content": "HTTP/1.1 400 Bad Request\n[\n {\n \"field\": \"password\",\n \"rule\": \"required\",\n \"message\": \"Path `password` is required.\"\n },\n {\n \"field\": \"username\",\n \"rule\": \"required\",\n \"message\": \"Path `username` is required.\"\n }\n ]",
  1273. "type": "json"
  1274. }
  1275. ]
  1276. },
  1277. "filename": "app/routes/users.js",
  1278. "groupTitle": "Users"
  1279. },
  1280. {
  1281. "type": "delete",
  1282. "url": "/users",
  1283. "title": "Unregistration",
  1284. "version": "1.0.0",
  1285. "name": "Unregistration",
  1286. "group": "Users",
  1287. "header": {
  1288. "fields": {
  1289. "Header": [
  1290. {
  1291. "group": "Header",
  1292. "type": "String",
  1293. "optional": false,
  1294. "field": "Content-Type",
  1295. "description": "<p>application/json</p> "
  1296. },
  1297. {
  1298. "group": "Header",
  1299. "type": "String",
  1300. "optional": false,
  1301. "field": "Authorization",
  1302. "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
  1303. }
  1304. ]
  1305. },
  1306. "examples": [
  1307. {
  1308. "title": "Authorization header example:",
  1309. "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
  1310. "type": "string"
  1311. }
  1312. ]
  1313. },
  1314. "success": {
  1315. "fields": {
  1316. "204": [
  1317. {
  1318. "group": "204",
  1319. "optional": false,
  1320. "field": "-",
  1321. "description": ""
  1322. }
  1323. ]
  1324. },
  1325. "examples": [
  1326. {
  1327. "title": "Success-Response:",
  1328. "content": "HTTP/1.1 204 No Content",
  1329. "type": "json"
  1330. }
  1331. ]
  1332. },
  1333. "error": {
  1334. "fields": {
  1335. "401": [
  1336. {
  1337. "group": "401",
  1338. "type": "<p>json</p> ",
  1339. "optional": false,
  1340. "field": "AuthenticationFailed",
  1341. "description": "<p>The user can't be found.</p> "
  1342. }
  1343. ]
  1344. },
  1345. "examples": [
  1346. {
  1347. "title": "AuthenticationFailed:",
  1348. "content": "HTTP/1.1 401 Not Found\n{\n \"message\": \"Authentication failed\"\n}",
  1349. "type": "json"
  1350. }
  1351. ]
  1352. },
  1353. "filename": "app/routes/users.js",
  1354. "groupTitle": "Users"
  1355. }
  1356. ] });