Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.81 KB | None | 0 0
  1. {
  2. "info": {
  3. "_postman_id": "c2eb9202-9874-473c-92bf-4da0cc07afd5",
  4. "name": "CodeDoor API",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "Company Actions",
  10. "description": null,
  11. "item": [
  12. {
  13. "name": "Create",
  14. "request": {
  15. "method": "POST",
  16. "header": [
  17. {
  18. "key": "Content-Type",
  19. "value": "application/x-www-form-urlencoded"
  20. }
  21. ],
  22. "body": {
  23. "mode": "urlencoded",
  24. "urlencoded": [
  25. {
  26. "key": "password",
  27. "value": "mySecretPassword",
  28. "type": "text",
  29. "description": "required"
  30. },
  31. {
  32. "key": "firstName",
  33. "value": "John",
  34. "type": "text",
  35. "description": "required"
  36. },
  37. {
  38. "key": "lastName",
  39. "value": "Doe",
  40. "type": "text",
  41. "description": "required"
  42. },
  43. {
  44. "key": "email",
  45. "value": "example@a.com",
  46. "type": "text",
  47. "description": "required"
  48. },
  49. {
  50. "key": "compDescription",
  51. "value": "Hello world",
  52. "type": "text",
  53. "description": "required",
  54. "disabled": true
  55. },
  56. {
  57. "key": "compBanner",
  58. "value": "http://banner-url.com",
  59. "type": "text"
  60. },
  61. {
  62. "key": "userImage",
  63. "value": "http://user-image-url.com",
  64. "type": "text"
  65. },
  66. {
  67. "key": "compName",
  68. "value": "Example company",
  69. "type": "text"
  70. }
  71. ]
  72. },
  73. "url": {
  74. "raw": "{{url}}/api/users/company",
  75. "host": [
  76. "{{url}}"
  77. ],
  78. "path": [
  79. "api",
  80. "users",
  81. "company"
  82. ]
  83. }
  84. },
  85. "response": []
  86. },
  87. {
  88. "name": "Get applications",
  89. "request": {
  90. "method": "GET",
  91. "header": [
  92. {
  93. "key": "accesstoken",
  94. "value": "{{oktaToken}}"
  95. }
  96. ],
  97. "body": {
  98. "mode": "raw",
  99. "raw": ""
  100. },
  101. "url": {
  102. "raw": "{{url}}/api/applications/companies",
  103. "host": [
  104. "{{url}}"
  105. ],
  106. "path": [
  107. "api",
  108. "applications",
  109. "companies"
  110. ]
  111. }
  112. },
  113. "response": []
  114. },
  115. {
  116. "name": "Get application by ID",
  117. "request": {
  118. "method": "GET",
  119. "header": [
  120. {
  121. "key": "accesstoken",
  122. "value": "{{oktaToken}}"
  123. }
  124. ],
  125. "body": {
  126. "mode": "raw",
  127. "raw": ""
  128. },
  129. "url": {
  130. "raw": "{{url}}/api/applications/companies/5a62b45b6707c409bebf5dfa",
  131. "host": [
  132. "{{url}}"
  133. ],
  134. "path": [
  135. "api",
  136. "applications",
  137. "companies",
  138. "5a62b45b6707c409bebf5dfa"
  139. ]
  140. }
  141. },
  142. "response": []
  143. },
  144. {
  145. "name": "Activate application by ID",
  146. "request": {
  147. "method": "UNLOCK",
  148. "header": [
  149. {
  150. "key": "accesstoken",
  151. "value": "{{oktaToken}}"
  152. }
  153. ],
  154. "body": {
  155. "mode": "raw",
  156. "raw": ""
  157. },
  158. "url": {
  159. "raw": "{{url}}/api/applications/companies/5a62b45b6707c409bebf5dfa",
  160. "host": [
  161. "{{url}}"
  162. ],
  163. "path": [
  164. "api",
  165. "applications",
  166. "companies",
  167. "5a62b45b6707c409bebf5dfa"
  168. ]
  169. },
  170. "description": "Also activates courses"
  171. },
  172. "response": []
  173. },
  174. {
  175. "name": "Get all activated",
  176. "request": {
  177. "method": "GET",
  178. "header": [
  179. {
  180. "key": "accesstoken",
  181. "value": "{{oktaToken}}"
  182. }
  183. ],
  184. "body": {
  185. "mode": "raw",
  186. "raw": ""
  187. },
  188. "url": {
  189. "raw": "{{url}}/api/companies/",
  190. "host": [
  191. "{{url}}"
  192. ],
  193. "path": [
  194. "api",
  195. "companies",
  196. ""
  197. ]
  198. }
  199. },
  200. "response": []
  201. },
  202. {
  203. "name": "Get activated by ID",
  204. "request": {
  205. "method": "GET",
  206. "header": [],
  207. "body": {
  208. "mode": "raw",
  209. "raw": ""
  210. },
  211. "url": {
  212. "raw": "{{url}}/api/companies/5a62b45b6707c409bebf5dfa",
  213. "host": [
  214. "{{url}}"
  215. ],
  216. "path": [
  217. "api",
  218. "companies",
  219. "5a62b45b6707c409bebf5dfa"
  220. ]
  221. }
  222. },
  223. "response": []
  224. },
  225. {
  226. "name": "Update by ID",
  227. "request": {
  228. "method": "PUT",
  229. "header": [
  230. {
  231. "key": "Content-Type",
  232. "value": "application/x-www-form-urlencoded"
  233. },
  234. {
  235. "key": "accesstoken",
  236. "value": "{{oktaToken}}"
  237. }
  238. ],
  239. "body": {
  240. "mode": "urlencoded",
  241. "urlencoded": [
  242. {
  243. "key": "firstName",
  244. "value": "John",
  245. "type": "text"
  246. },
  247. {
  248. "key": "lastName",
  249. "value": "Doe",
  250. "type": "text"
  251. },
  252. {
  253. "key": "compDescription",
  254. "value": "Hello world",
  255. "type": "text"
  256. },
  257. {
  258. "key": "compBanner",
  259. "value": "http://banner-url.com",
  260. "type": "text"
  261. },
  262. {
  263. "key": "userImage",
  264. "value": "http://user-image-url.com",
  265. "type": "text"
  266. },
  267. {
  268. "key": "compName",
  269. "value": "Example company",
  270. "type": "text"
  271. }
  272. ]
  273. },
  274. "url": {
  275. "raw": "{{url}}/api/companies/5a62b45b6707c409bebf5dfa",
  276. "host": [
  277. "{{url}}"
  278. ],
  279. "path": [
  280. "api",
  281. "companies",
  282. "5a62b45b6707c409bebf5dfa"
  283. ]
  284. }
  285. },
  286. "response": []
  287. },
  288. {
  289. "name": "Deactivate by ID",
  290. "request": {
  291. "method": "LOCK",
  292. "header": [
  293. {
  294. "key": "Content-Type",
  295. "value": "application/x-www-form-urlencoded"
  296. },
  297. {
  298. "key": "accesstoken",
  299. "value": "{{oktaToken}}"
  300. }
  301. ],
  302. "body": {
  303. "mode": "raw",
  304. "raw": ""
  305. },
  306. "url": {
  307. "raw": "{{url}}/api/companies/5a62b45b6707c409bebf5dfa",
  308. "host": [
  309. "{{url}}"
  310. ],
  311. "path": [
  312. "api",
  313. "companies",
  314. "5a62b45b6707c409bebf5dfa"
  315. ]
  316. },
  317. "description": "Also deactivates company courses"
  318. },
  319. "response": []
  320. },
  321. {
  322. "name": "Activate Company",
  323. "request": {
  324. "method": "POST",
  325. "header": [
  326. {
  327. "key": "Content-Type",
  328. "value": "application/x-www-form-urlencoded"
  329. },
  330. {
  331. "key": "accesstoken",
  332. "value": "{{oktaToken}}"
  333. }
  334. ],
  335. "body": {
  336. "mode": "urlencoded",
  337. "urlencoded": [
  338. {
  339. "key": "email",
  340. "value": "marianadamache.dev@gmail.com",
  341. "description": "",
  342. "type": "text"
  343. },
  344. {
  345. "key": "secret token",
  346. "value": "",
  347. "description": "",
  348. "type": "text"
  349. }
  350. ]
  351. },
  352. "url": {
  353. "raw": "{{url}}/api/users/company/activate/cbacb2e2630fd79d3d242348cfa343a702706143",
  354. "host": [
  355. "{{url}}"
  356. ],
  357. "path": [
  358. "api",
  359. "users",
  360. "company",
  361. "activate",
  362. "cbacb2e2630fd79d3d242348cfa343a702706143"
  363. ]
  364. },
  365. "description": "safasf"
  366. },
  367. "response": []
  368. }
  369. ]
  370. },
  371. {
  372. "name": "Student Actions",
  373. "description": null,
  374. "item": [
  375. {
  376. "name": "Create",
  377. "request": {
  378. "method": "POST",
  379. "header": [
  380. {
  381. "key": "Content-Type",
  382. "value": "application/x-www-form-urlencoded"
  383. }
  384. ],
  385. "body": {
  386. "mode": "urlencoded",
  387. "urlencoded": [
  388. {
  389. "key": "password",
  390. "value": "mySecretPassword",
  391. "type": "text",
  392. "description": "required",
  393. "disabled": true
  394. },
  395. {
  396. "key": "firstName",
  397. "value": "John",
  398. "type": "text",
  399. "description": "required"
  400. },
  401. {
  402. "key": "lastName",
  403. "value": "Doe",
  404. "type": "text",
  405. "description": "required"
  406. },
  407. {
  408. "key": "email",
  409. "value": "example@a.com",
  410. "type": "text",
  411. "description": "required"
  412. },
  413. {
  414. "key": "userImage",
  415. "value": "http://user-image.com",
  416. "description": "required",
  417. "type": "text"
  418. },
  419. {
  420. "key": "userVideo",
  421. "value": "http://user-video-link.com",
  422. "type": "text",
  423. "description": "required"
  424. },
  425. {
  426. "key": "userGithub",
  427. "value": "Example company",
  428. "type": "text",
  429. "description": "required"
  430. },
  431. {
  432. "key": "userBanner",
  433. "value": "http://banner-url.com",
  434. "type": "text"
  435. }
  436. ]
  437. },
  438. "url": {
  439. "raw": "{{url}}/api/users/student",
  440. "host": [
  441. "{{url}}"
  442. ],
  443. "path": [
  444. "api",
  445. "users",
  446. "student"
  447. ]
  448. }
  449. },
  450. "response": []
  451. },
  452. {
  453. "name": "Get applications",
  454. "request": {
  455. "method": "GET",
  456. "header": [
  457. {
  458. "key": "accesstoken",
  459. "value": "{{oktaToken}}"
  460. }
  461. ],
  462. "body": {
  463. "mode": "raw",
  464. "raw": ""
  465. },
  466. "url": {
  467. "raw": "{{url}}/api/applications/students",
  468. "host": [
  469. "{{url}}"
  470. ],
  471. "path": [
  472. "api",
  473. "applications",
  474. "students"
  475. ]
  476. }
  477. },
  478. "response": []
  479. },
  480. {
  481. "name": "Get application by ID",
  482. "request": {
  483. "method": "GET",
  484. "header": [
  485. {
  486. "key": "accesstoken",
  487. "value": "{{oktaToken}}"
  488. }
  489. ],
  490. "body": {
  491. "mode": "raw",
  492. "raw": ""
  493. },
  494. "url": {
  495. "raw": "{{url}}/api/applications/students/5a5be9e2b000ea05e6a11fbc",
  496. "host": [
  497. "{{url}}"
  498. ],
  499. "path": [
  500. "api",
  501. "applications",
  502. "students",
  503. "5a5be9e2b000ea05e6a11fbc"
  504. ]
  505. }
  506. },
  507. "response": []
  508. },
  509. {
  510. "name": "Activate application by ID",
  511. "request": {
  512. "method": "UNLOCK",
  513. "header": [
  514. {
  515. "key": "accesstoken",
  516. "value": "{{oktaToken}}"
  517. }
  518. ],
  519. "body": {
  520. "mode": "raw",
  521. "raw": ""
  522. },
  523. "url": {
  524. "raw": "{{url}}/api/applications/students/5a5be9e2b000ea05e6a11fbc",
  525. "host": [
  526. "{{url}}"
  527. ],
  528. "path": [
  529. "api",
  530. "applications",
  531. "students",
  532. "5a5be9e2b000ea05e6a11fbc"
  533. ]
  534. },
  535. "description": "Also activates courses"
  536. },
  537. "response": []
  538. },
  539. {
  540. "name": "Get all activated",
  541. "request": {
  542. "method": "GET",
  543. "header": [],
  544. "body": {
  545. "mode": "raw",
  546. "raw": ""
  547. },
  548. "url": {
  549. "raw": "{{url}}/api/students/",
  550. "host": [
  551. "{{url}}"
  552. ],
  553. "path": [
  554. "api",
  555. "students",
  556. ""
  557. ]
  558. }
  559. },
  560. "response": []
  561. },
  562. {
  563. "name": "Get activated by ID",
  564. "request": {
  565. "method": "GET",
  566. "header": [],
  567. "body": {
  568. "mode": "raw",
  569. "raw": ""
  570. },
  571. "url": {
  572. "raw": "{{url}}/api/students/5a5be9e2b000ea05e6a11fbc",
  573. "host": [
  574. "{{url}}"
  575. ],
  576. "path": [
  577. "api",
  578. "students",
  579. "5a5be9e2b000ea05e6a11fbc"
  580. ]
  581. }
  582. },
  583. "response": []
  584. },
  585. {
  586. "name": "Update by ID",
  587. "request": {
  588. "method": "PUT",
  589. "header": [
  590. {
  591. "key": "Content-Type",
  592. "value": "application/x-www-form-urlencoded"
  593. },
  594. {
  595. "key": "accesstoken",
  596. "value": "{{oktaToken}}"
  597. }
  598. ],
  599. "body": {
  600. "mode": "urlencoded",
  601. "urlencoded": [
  602. {
  603. "key": "firstName",
  604. "value": "John",
  605. "type": "text"
  606. },
  607. {
  608. "key": "lastName",
  609. "value": "Doe",
  610. "type": "text"
  611. },
  612. {
  613. "key": "userImage",
  614. "value": "http://user-image.com",
  615. "type": "text"
  616. },
  617. {
  618. "key": "userVideo",
  619. "value": "http://user-video-link.com",
  620. "type": "text"
  621. },
  622. {
  623. "key": "userGithub",
  624. "value": "Example company",
  625. "type": "text"
  626. },
  627. {
  628. "key": "userBanner",
  629. "value": "http://banner-url.com",
  630. "type": "text"
  631. }
  632. ]
  633. },
  634. "url": {
  635. "raw": "{{url}}/api/students/5a5be9e2b000ea05e6a11fbc",
  636. "host": [
  637. "{{url}}"
  638. ],
  639. "path": [
  640. "api",
  641. "students",
  642. "5a5be9e2b000ea05e6a11fbc"
  643. ]
  644. }
  645. },
  646. "response": []
  647. },
  648. {
  649. "name": "Deactivate by ID",
  650. "request": {
  651. "method": "LOCK",
  652. "header": [
  653. {
  654. "key": "Content-Type",
  655. "value": "application/x-www-form-urlencoded"
  656. },
  657. {
  658. "key": "accesstoken",
  659. "value": ""
  660. }
  661. ],
  662. "body": {
  663. "mode": "raw",
  664. "raw": ""
  665. },
  666. "url": {
  667. "raw": "{{url}}/api/companies/5a62b45b6707c409bebf5dfa",
  668. "host": [
  669. "{{url}}"
  670. ],
  671. "path": [
  672. "api",
  673. "companies",
  674. "5a62b45b6707c409bebf5dfa"
  675. ]
  676. },
  677. "description": "Also deactivates company courses"
  678. },
  679. "response": []
  680. },
  681. {
  682. "name": "Activate User",
  683. "request": {
  684. "method": "POST",
  685. "header": [
  686. {
  687. "key": "Content-Type",
  688. "value": "application/x-www-form-urlencoded"
  689. },
  690. {
  691. "key": "accesstoken",
  692. "value": "{{oktaToken}}"
  693. }
  694. ],
  695. "body": {
  696. "mode": "urlencoded",
  697. "urlencoded": [
  698. {
  699. "key": "email",
  700. "value": "marianadamache.dev@gmail.com",
  701. "description": "",
  702. "type": "text"
  703. },
  704. {
  705. "key": "secret token",
  706. "value": "",
  707. "description": "",
  708. "type": "text"
  709. }
  710. ]
  711. },
  712. "url": {
  713. "raw": "{{url}}/api/users/activate/cbacb2e2630fd79d3d242348cfa343a702706143",
  714. "host": [
  715. "{{url}}"
  716. ],
  717. "path": [
  718. "api",
  719. "users",
  720. "activate",
  721. "cbacb2e2630fd79d3d242348cfa343a702706143"
  722. ]
  723. },
  724. "description": "safasf"
  725. },
  726. "response": []
  727. }
  728. ]
  729. },
  730. {
  731. "name": "Tutor Actions",
  732. "description": null,
  733. "item": [
  734. {
  735. "name": "Create",
  736. "request": {
  737. "method": "POST",
  738. "header": [
  739. {
  740. "key": "Content-Type",
  741. "value": "application/x-www-form-urlencoded"
  742. }
  743. ],
  744. "body": {
  745. "mode": "urlencoded",
  746. "urlencoded": [
  747. {
  748. "key": "password",
  749. "value": "mySecretPassword",
  750. "type": "text",
  751. "description": "required",
  752. "disabled": true
  753. },
  754. {
  755. "key": "firstName",
  756. "value": "John",
  757. "type": "text",
  758. "description": "required"
  759. },
  760. {
  761. "key": "lastName",
  762. "value": "Doe",
  763. "type": "text",
  764. "description": "required"
  765. },
  766. {
  767. "key": "email",
  768. "value": "example@a.com",
  769. "type": "text",
  770. "description": "required"
  771. },
  772. {
  773. "key": "userImage",
  774. "value": "http://user-image.com",
  775. "description": "required",
  776. "type": "text"
  777. },
  778. {
  779. "key": "userVideo",
  780. "value": "http://user-video-link.com",
  781. "type": "text",
  782. "description": "required"
  783. },
  784. {
  785. "key": "userGithub",
  786. "value": "Example company",
  787. "type": "text",
  788. "description": "required"
  789. },
  790. {
  791. "key": "userBanner",
  792. "value": "http://banner-url.com",
  793. "type": "text"
  794. }
  795. ]
  796. },
  797. "url": {
  798. "raw": "{{url}}/api/users/tutor",
  799. "host": [
  800. "{{url}}"
  801. ],
  802. "path": [
  803. "api",
  804. "users",
  805. "tutor"
  806. ]
  807. }
  808. },
  809. "response": []
  810. },
  811. {
  812. "name": "Get applications",
  813. "request": {
  814. "method": "GET",
  815. "header": [
  816. {
  817. "key": "accesstoken",
  818. "value": "{{oktaToken}}"
  819. }
  820. ],
  821. "body": {
  822. "mode": "raw",
  823. "raw": ""
  824. },
  825. "url": {
  826. "raw": "{{url}}/api/applications/tutors",
  827. "host": [
  828. "{{url}}"
  829. ],
  830. "path": [
  831. "api",
  832. "applications",
  833. "tutors"
  834. ]
  835. }
  836. },
  837. "response": []
  838. },
  839. {
  840. "name": "Get application by ID",
  841. "request": {
  842. "method": "GET",
  843. "header": [
  844. {
  845. "key": "accesstoken",
  846. "value": "{{oktaToken}}"
  847. }
  848. ],
  849. "body": {
  850. "mode": "raw",
  851. "raw": ""
  852. },
  853. "url": {
  854. "raw": "{{url}}/api/applications/tutors/5a5fecf37de1fff38f7021cf",
  855. "host": [
  856. "{{url}}"
  857. ],
  858. "path": [
  859. "api",
  860. "applications",
  861. "tutors",
  862. "5a5fecf37de1fff38f7021cf"
  863. ]
  864. }
  865. },
  866. "response": []
  867. },
  868. {
  869. "name": "Activate application by ID",
  870. "request": {
  871. "method": "UNLOCK",
  872. "header": [
  873. {
  874. "key": "accesstoken",
  875. "value": "{{oktaToken}}"
  876. }
  877. ],
  878. "body": {
  879. "mode": "raw",
  880. "raw": ""
  881. },
  882. "url": {
  883. "raw": "{{url}}/api/applications/tutors/5a5fecf37de1fff38f7021cf",
  884. "host": [
  885. "{{url}}"
  886. ],
  887. "path": [
  888. "api",
  889. "applications",
  890. "tutors",
  891. "5a5fecf37de1fff38f7021cf"
  892. ]
  893. },
  894. "description": "Also activates courses"
  895. },
  896. "response": []
  897. },
  898. {
  899. "name": "Get all activated",
  900. "request": {
  901. "method": "GET",
  902. "header": [],
  903. "body": {
  904. "mode": "raw",
  905. "raw": ""
  906. },
  907. "url": {
  908. "raw": "{{url}}/api/tutors/",
  909. "host": [
  910. "{{url}}"
  911. ],
  912. "path": [
  913. "api",
  914. "tutors",
  915. ""
  916. ]
  917. }
  918. },
  919. "response": []
  920. },
  921. {
  922. "name": "Get activated by ID",
  923. "request": {
  924. "method": "GET",
  925. "header": [],
  926. "body": {
  927. "mode": "raw",
  928. "raw": ""
  929. },
  930. "url": {
  931. "raw": "{{url}}/api/tutors/5a5fecf37de1fff38f7021cf",
  932. "host": [
  933. "{{url}}"
  934. ],
  935. "path": [
  936. "api",
  937. "tutors",
  938. "5a5fecf37de1fff38f7021cf"
  939. ]
  940. }
  941. },
  942. "response": []
  943. },
  944. {
  945. "name": "Update by ID",
  946. "request": {
  947. "method": "PUT",
  948. "header": [
  949. {
  950. "key": "Content-Type",
  951. "value": "application/x-www-form-urlencoded"
  952. },
  953. {
  954. "key": "accesstoken",
  955. "value": "{{oktaToken}}"
  956. }
  957. ],
  958. "body": {
  959. "mode": "urlencoded",
  960. "urlencoded": [
  961. {
  962. "key": "firstName",
  963. "value": "John",
  964. "type": "text"
  965. },
  966. {
  967. "key": "lastName",
  968. "value": "Doe",
  969. "type": "text"
  970. },
  971. {
  972. "key": "userImage",
  973. "value": "http://user-image.com",
  974. "type": "text"
  975. },
  976. {
  977. "key": "userVideo",
  978. "value": "http://user-video-link.com",
  979. "type": "text"
  980. },
  981. {
  982. "key": "userGithub",
  983. "value": "Example company",
  984. "type": "text"
  985. },
  986. {
  987. "key": "userBanner",
  988. "value": "http://banner-url.com",
  989. "type": "text"
  990. }
  991. ]
  992. },
  993. "url": {
  994. "raw": "{{url}}/api/tutors/5a5fecf37de1fff38f7021cf",
  995. "host": [
  996. "{{url}}"
  997. ],
  998. "path": [
  999. "api",
  1000. "tutors",
  1001. "5a5fecf37de1fff38f7021cf"
  1002. ]
  1003. }
  1004. },
  1005. "response": []
  1006. },
  1007. {
  1008. "name": "Deactivate by ID",
  1009. "request": {
  1010. "method": "LOCK",
  1011. "header": [
  1012. {
  1013. "key": "Content-Type",
  1014. "value": "application/x-www-form-urlencoded"
  1015. },
  1016. {
  1017. "key": "accesstoken",
  1018. "value": ""
  1019. }
  1020. ],
  1021. "body": {
  1022. "mode": "raw",
  1023. "raw": ""
  1024. },
  1025. "url": {
  1026. "raw": "{{url}}/api/companies/5a62b45b6707c409bebf5dfa",
  1027. "host": [
  1028. "{{url}}"
  1029. ],
  1030. "path": [
  1031. "api",
  1032. "companies",
  1033. "5a62b45b6707c409bebf5dfa"
  1034. ]
  1035. },
  1036. "description": "Also deactivates company courses"
  1037. },
  1038. "response": []
  1039. }
  1040. ]
  1041. },
  1042. {
  1043. "name": "Course Actions",
  1044. "description": null,
  1045. "item": [
  1046. {
  1047. "name": "Create course",
  1048. "request": {
  1049. "method": "POST",
  1050. "header": [
  1051. {
  1052. "key": "Content-Type",
  1053. "value": "application/x-www-form-urlencoded"
  1054. },
  1055. {
  1056. "key": "accesstoken",
  1057. "value": "{{oktaToken}}"
  1058. }
  1059. ],
  1060. "body": {
  1061. "mode": "urlencoded",
  1062. "urlencoded": [
  1063. {
  1064. "key": "title",
  1065. "value": "Full Stack Web Developer 3",
  1066. "type": "text"
  1067. },
  1068. {
  1069. "key": "locationAddr",
  1070. "value": "21, Jump Street",
  1071. "type": "text"
  1072. },
  1073. {
  1074. "key": "locationCity",
  1075. "value": "Vancouver",
  1076. "type": "text"
  1077. },
  1078. {
  1079. "key": "profileTitle",
  1080. "value": "Lets learn PHP with ease!",
  1081. "type": "text"
  1082. },
  1083. {
  1084. "key": "profileBody",
  1085. "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel finibus dolor. Aenean vel tempor metus. Suspendisse quis bibendum sem. Etiam tincidunt imperdiet ornare. Morbi interdum interdum nibh, ac feugiat eros auctor eu. Duis bibendum lectus elit, vel tincidunt elit varius laoreet. Maecenas eu magna nibh. Duis nisi quam, mattis at maximus sit amet, porttitor in mauris. Ut sed enim viverra, molestie dolor vitae, dapibus sem. Praesent eget tempor justo, quis hendrerit quam. Vivamus facilisis, elit eget blandit dapibus, leo ex auctor sem, ac dignissim neque mauris vel augue.",
  1086. "type": "text"
  1087. },
  1088. {
  1089. "key": "imageBanner",
  1090. "value": "http://image_course_banner",
  1091. "type": "text"
  1092. },
  1093. {
  1094. "key": "dateStart",
  1095. "value": "21/1/2017",
  1096. "type": "text"
  1097. },
  1098. {
  1099. "key": "dateEnd",
  1100. "value": "21/11/2017",
  1101. "type": "text"
  1102. },
  1103. {
  1104. "key": "meetingsPerWeek",
  1105. "value": "6",
  1106. "type": "text"
  1107. },
  1108. {
  1109. "key": "model",
  1110. "value": "Designed in house",
  1111. "type": "text"
  1112. }
  1113. ]
  1114. },
  1115. "url": {
  1116. "raw": "{{url}}/api/courses/",
  1117. "host": [
  1118. "{{url}}"
  1119. ],
  1120. "path": [
  1121. "api",
  1122. "courses",
  1123. ""
  1124. ]
  1125. },
  1126. "description": "Create course"
  1127. },
  1128. "response": []
  1129. },
  1130. {
  1131. "name": "Get applications",
  1132. "request": {
  1133. "method": "GET",
  1134. "header": [
  1135. {
  1136. "key": "accesstoken",
  1137. "value": "{{oktaToken}}"
  1138. }
  1139. ],
  1140. "body": {
  1141. "mode": "raw",
  1142. "raw": ""
  1143. },
  1144. "url": {
  1145. "raw": "{{url}}/api/applications/courses/",
  1146. "host": [
  1147. "{{url}}"
  1148. ],
  1149. "path": [
  1150. "api",
  1151. "applications",
  1152. "courses",
  1153. ""
  1154. ]
  1155. }
  1156. },
  1157. "response": []
  1158. },
  1159. {
  1160. "name": "Get application by ID",
  1161. "request": {
  1162. "method": "GET",
  1163. "header": [
  1164. {
  1165. "key": "accesstoken",
  1166. "value": "{{oktaToken}}"
  1167. }
  1168. ],
  1169. "body": {
  1170. "mode": "raw",
  1171. "raw": ""
  1172. },
  1173. "url": {
  1174. "raw": "{{url}}/api/applications/courses/5a613cc4f195ba0aeb0dd3da",
  1175. "host": [
  1176. "{{url}}"
  1177. ],
  1178. "path": [
  1179. "api",
  1180. "applications",
  1181. "courses",
  1182. "5a613cc4f195ba0aeb0dd3da"
  1183. ]
  1184. }
  1185. },
  1186. "response": []
  1187. },
  1188. {
  1189. "name": "Activate application by ID",
  1190. "request": {
  1191. "method": "UNLOCK",
  1192. "header": [
  1193. {
  1194. "key": "accesstoken",
  1195. "value": "{{oktaToken}}"
  1196. }
  1197. ],
  1198. "body": {
  1199. "mode": "raw",
  1200. "raw": ""
  1201. },
  1202. "url": {
  1203. "raw": "{{url}}/api/applications/courses/5a613cc4f195ba0aeb0dd3da",
  1204. "host": [
  1205. "{{url}}"
  1206. ],
  1207. "path": [
  1208. "api",
  1209. "applications",
  1210. "courses",
  1211. "5a613cc4f195ba0aeb0dd3da"
  1212. ]
  1213. }
  1214. },
  1215. "response": []
  1216. },
  1217. {
  1218. "name": "Get all activated",
  1219. "request": {
  1220. "method": "GET",
  1221. "header": [
  1222. {
  1223. "key": "Content-Type",
  1224. "value": "application/x-www-form-urlencoded"
  1225. }
  1226. ],
  1227. "body": {
  1228. "mode": "urlencoded",
  1229. "urlencoded": [
  1230. {
  1231. "key": "title",
  1232. "value": "PHP Dev Class",
  1233. "type": "text"
  1234. },
  1235. {
  1236. "key": "locationAddr",
  1237. "value": "21, Jump Street",
  1238. "type": "text"
  1239. },
  1240. {
  1241. "key": "locationCity",
  1242. "value": "Vancouver",
  1243. "type": "text"
  1244. },
  1245. {
  1246. "key": "profileTitle",
  1247. "value": "Lets learn PHP with ease!",
  1248. "type": "text"
  1249. },
  1250. {
  1251. "key": "profileBody",
  1252. "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel finibus dolor. Aenean vel tempor metus. Suspendisse quis bibendum sem. Etiam tincidunt imperdiet ornare. Morbi interdum interdum nibh, ac feugiat eros auctor eu. Duis bibendum lectus elit, vel tincidunt elit varius laoreet. Maecenas eu magna nibh. Duis nisi quam, mattis at maximus sit amet, porttitor in mauris. Ut sed enim viverra, molestie dolor vitae, dapibus sem. Praesent eget tempor justo, quis hendrerit quam. Vivamus facilisis, elit eget blandit dapibus, leo ex auctor sem, ac dignissim neque mauris vel augue.",
  1253. "type": "text"
  1254. },
  1255. {
  1256. "key": "imageBanner",
  1257. "value": "http://image_course_banner",
  1258. "type": "text"
  1259. },
  1260. {
  1261. "key": "dateStart",
  1262. "value": "21/1/2017",
  1263. "type": "text"
  1264. },
  1265. {
  1266. "key": "dateEnd",
  1267. "value": "21.11.2017",
  1268. "type": "text"
  1269. },
  1270. {
  1271. "key": "meetingsPerWeek",
  1272. "value": "6",
  1273. "type": "text"
  1274. }
  1275. ]
  1276. },
  1277. "url": {
  1278. "raw": "{{url}}/api/courses/",
  1279. "host": [
  1280. "{{url}}"
  1281. ],
  1282. "path": [
  1283. "api",
  1284. "courses",
  1285. ""
  1286. ]
  1287. },
  1288. "description": "Create Course"
  1289. },
  1290. "response": []
  1291. },
  1292. {
  1293. "name": "Get activated by ID",
  1294. "request": {
  1295. "method": "GET",
  1296. "header": [],
  1297. "body": {
  1298. "mode": "raw",
  1299. "raw": ""
  1300. },
  1301. "url": {
  1302. "raw": "{{url}}/api/courses/5a613cc4f195ba0aeb0dd3da",
  1303. "host": [
  1304. "{{url}}"
  1305. ],
  1306. "path": [
  1307. "api",
  1308. "courses",
  1309. "5a613cc4f195ba0aeb0dd3da"
  1310. ]
  1311. }
  1312. },
  1313. "response": []
  1314. },
  1315. {
  1316. "name": "Update by ID",
  1317. "request": {
  1318. "method": "PUT",
  1319. "header": [
  1320. {
  1321. "key": "Content-Type",
  1322. "value": "application/x-www-form-urlencoded"
  1323. },
  1324. {
  1325. "key": "accesstoken",
  1326. "value": "{{oktaToken}}"
  1327. }
  1328. ],
  1329. "body": {
  1330. "mode": "urlencoded",
  1331. "urlencoded": [
  1332. {
  1333. "key": "title",
  1334. "value": "Full Stack Web Developer 9",
  1335. "type": "text"
  1336. },
  1337. {
  1338. "key": "locationAddr",
  1339. "value": "21, Jump Street",
  1340. "type": "text"
  1341. },
  1342. {
  1343. "key": "locationCity",
  1344. "value": "Vancouver",
  1345. "type": "text"
  1346. },
  1347. {
  1348. "key": "profileTitle",
  1349. "value": "Lets learn PHP with ease!",
  1350. "type": "text"
  1351. },
  1352. {
  1353. "key": "profileBody",
  1354. "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel finibus dolor. Aenean vel tempor metus. Suspendisse quis bibendum sem. Etiam tincidunt imperdiet ornare. Morbi interdum interdum nibh, ac feugiat eros auctor eu. Duis bibendum lectus elit, vel tincidunt elit varius laoreet. Maecenas eu magna nibh. Duis nisi quam, mattis at maximus sit amet, porttitor in mauris. Ut sed enim viverra, molestie dolor vitae, dapibus sem. Praesent eget tempor justo, quis hendrerit quam. Vivamus facilisis, elit eget blandit dapibus, leo ex auctor sem, ac dignissim neque mauris vel augue.",
  1355. "type": "text"
  1356. },
  1357. {
  1358. "key": "imageBanner",
  1359. "value": "http://image_course_banner",
  1360. "type": "text"
  1361. },
  1362. {
  1363. "key": "dateStart",
  1364. "value": "21/1/2017",
  1365. "type": "text"
  1366. },
  1367. {
  1368. "key": "dateEnd",
  1369. "value": "21/11/2017",
  1370. "type": "text"
  1371. },
  1372. {
  1373. "key": "meetingsPerWeek",
  1374. "value": "6",
  1375. "type": "text"
  1376. },
  1377. {
  1378. "key": "model",
  1379. "value": "Designed in house",
  1380. "type": "text"
  1381. }
  1382. ]
  1383. },
  1384. "url": {
  1385. "raw": "{{url}}/api/courses/5a613cc4f195ba0aeb0dd3da",
  1386. "host": [
  1387. "{{url}}"
  1388. ],
  1389. "path": [
  1390. "api",
  1391. "courses",
  1392. "5a613cc4f195ba0aeb0dd3da"
  1393. ]
  1394. },
  1395. "description": "Create course"
  1396. },
  1397. "response": []
  1398. },
  1399. {
  1400. "name": "Deactivate Course Full Stack",
  1401. "request": {
  1402. "method": "LOCK",
  1403. "header": [
  1404. {
  1405. "key": "accesstoken",
  1406. "value": "{{oktaToken}}"
  1407. },
  1408. {
  1409. "key": "Content-Type",
  1410. "value": "application/x-www-form-urlencoded"
  1411. }
  1412. ],
  1413. "body": {
  1414. "mode": "raw",
  1415. "raw": ""
  1416. },
  1417. "url": {
  1418. "raw": "{{url}}/api/courses/5a613cc4f195ba0aeb0dd3da",
  1419. "host": [
  1420. "{{url}}"
  1421. ],
  1422. "path": [
  1423. "api",
  1424. "courses",
  1425. "5a613cc4f195ba0aeb0dd3da"
  1426. ]
  1427. }
  1428. },
  1429. "response": []
  1430. }
  1431. ]
  1432. },
  1433. {
  1434. "name": "SEND MAIL",
  1435. "request": {
  1436. "method": "POST",
  1437. "header": [
  1438. {
  1439. "key": "Content-Type",
  1440. "value": "application/x-www-form-urlencoded"
  1441. },
  1442. {
  1443. "key": "accesstoken",
  1444. "value": "{{oktaToken}}"
  1445. }
  1446. ],
  1447. "body": {
  1448. "mode": "urlencoded",
  1449. "urlencoded": [
  1450. {
  1451. "key": "email",
  1452. "value": "marian.adamache@gmail.com",
  1453. "description": "",
  1454. "type": "text"
  1455. },
  1456. {
  1457. "key": "message",
  1458. "value": "<h1>Hello m8</h1><p>Nice to see it running</p>",
  1459. "description": "",
  1460. "type": "text"
  1461. }
  1462. ]
  1463. },
  1464. "url": {
  1465. "raw": "{{url}}/api/mail",
  1466. "host": [
  1467. "{{url}}"
  1468. ],
  1469. "path": [
  1470. "api",
  1471. "mail"
  1472. ]
  1473. }
  1474. },
  1475. "response": []
  1476. }
  1477. ]
  1478. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement