Advertisement
Guest User

Untitled

a guest
May 27th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ///Server app sends this json to the app
  2. {
  3.  
  4. "state_id":7,
  5. "state_name":"Login request"
  6.  
  7. }
  8.  
  9. ////////App displays login page and waits for the user to respond
  10.  
  11. {
  12. "auth":{
  13. "email_address":"kkituyi@yahoo.com",
  14. "password":"test",
  15. "username":"kenkit",
  16. },
  17. "state_id":7,
  18. }
  19. //App sends above json to service
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ///app sends this json to the SERVICE
  26. {
  27.  
  28. "state_id":8,
  29. "state_name":"Display companies"
  30.  
  31. }
  32.  
  33. ////////Service responds with this
  34.  
  35. {
  36. "companies":[
  37. { "id":1,"name":"Techno"},
  38. {"id":1, "name":"Infinix"}
  39. ],
  40. "state_id":8,
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement