Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. 2.2.2 :006 > e.connect_user
  2. [JsonApi#request begin]
  3. # Request
  4. Method - post
  5. Path - http://pechange.rece.hachette-livre.fr/users/login
  6. Params -
  7. {:application_isbn=>"Hachette.ENE.1.0",
  8. :login=>"isimage.v2@ene.fr",
  9. :password=>"isimage",
  10. :jsonContainer=>"{\"reader\":\"WEB-ENE-2.0\"}"}
  11. # Response
  12. Code - 200
  13. Body -
  14. {
  15. "token": "Basic aXNpbWFnZS52MkBlbmUuZnI6SGFjaGV0dGUuRU5FLjEuMDppc2ltYWdl",
  16. "connectedUser": {
  17. "teacherId": 943,
  18. "email": "isimage.v2@ene.fr",
  19. "last_name": "isimage.v2@ene.fr",
  20. "first_name": "isimage.v2@ene.fr",
  21. "status": null,
  22. "user": {
  23. "userId": 84156,
  24. "login": "isimage.v2@ene.fr",
  25. "type": "teacher",
  26. "lastConnectionDate": "28/08/2015 11:52:11",
  27. "currentConnectionDate": "28/08/2015 11:52:27",
  28. "jsonContainer": {
  29. "reader": "WEB-ENE-2.0"
  30. }
  31. },
  32. "pupils": [
  33.  
  34. ]
  35. }
  36. }
  37. [JsonApi#request end]
  38. [JsonApi#request begin]
  39. # Request
  40. Method - get
  41. Path - http://pechange.rece.hachette-livre.fr/users/search
  42. Params -
  43. {:login=>"isimage.v2@ene.fr"}
  44. # Response
  45. Code - 200
  46. Body -
  47. {
  48. "total_pages": 1,
  49. "total_results": 2,
  50. "index_page": 1,
  51. "page_size": 10,
  52. "order_by": "login",
  53. "order_dir": "ASC",
  54. "results": [
  55. {
  56. "teacherId": 943,
  57. "last_name": "isimage.v2@ene.fr",
  58. "first_name": "isimage.v2@ene.fr",
  59. "status": null,
  60. "user": {
  61. "userId": 84156,
  62. "login": "isimage.v2@ene.fr",
  63. "type": "teacher",
  64. "schools": [
  65. {
  66. "schoolId": 1,
  67. "name": "rich school",
  68. "rne_code": "hachette code",
  69. "address": {
  70. "addressId": 1,
  71. "street_number": null,
  72. "street": null,
  73. "country": "France",
  74. "city": "Paris",
  75. "postal_code": "75015",
  76. "jsonContainer": null
  77. },
  78. "source": "PIA",
  79. "jsonContainer": null
  80. },
  81. {
  82. "schoolId": 54184,
  83. "name": "isimage.v2@ene.fr",
  84. "rne_code": "isimage.v2@ene.fr",
  85. "address": null,
  86. "source": "ENE",
  87. "jsonContainer": null
  88. }
  89. ],
  90. "jsonContainer": {
  91. "reader": "WEB-ENE-2.0"
  92. }
  93. },
  94. "pupils": [
  95.  
  96. ]
  97. },
  98. {
  99. "teacherId": 943,
  100. "last_name": "isimage.v2@ene.fr",
  101. "first_name": "isimage.v2@ene.fr",
  102. "status": null,
  103. "user": {
  104. "userId": 84156,
  105. "login": "isimage.v2@ene.fr",
  106. "type": "teacher",
  107. "schools": [
  108. {
  109. "schoolId": 1,
  110. "name": "rich school",
  111. "rne_code": "hachette code",
  112. "address": {
  113. "addressId": 1,
  114. "street_number": null,
  115. "street": null,
  116. "country": "France",
  117. "city": "Paris",
  118. "postal_code": "75015",
  119. "jsonContainer": null
  120. },
  121. "source": "PIA",
  122. "jsonContainer": null
  123. },
  124. {
  125. "schoolId": 54184,
  126. "name": "isimage.v2@ene.fr",
  127. "rne_code": "isimage.v2@ene.fr",
  128. "address": null,
  129. "source": "ENE",
  130. "jsonContainer": null
  131. }
  132. ],
  133. "jsonContainer": {
  134. "reader": "WEB-ENE-2.0"
  135. }
  136. },
  137. "pupils": [
  138.  
  139. ]
  140. }
  141. ]
  142. }
  143. [JsonApi#request end]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement