Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Server app sends this json to the app
- {
- "state_id":7,
- "state_name":"Login request"
- }
- ////////App displays login page and waits for the user to respond
- {
- "auth":{
- "email_address":"kkituyi@yahoo.com",
- "password":"test",
- "username":"kenkit",
- },
- "state_id":7,
- }
- //App sends above json to service
- ///app sends this json to the SERVICE
- {
- "state_id":8,
- "state_name":"Display companies"
- }
- ////////Service responds with this
- {
- "companies":[
- { "id":1,"name":"Techno"},
- {"id":1, "name":"Infinix"}
- ],
- "state_id":8,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement