Advertisement
mouhsineelachbi

photo user example

Mar 10th, 2022
1,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.37 KB | None | 0 0
  1. photo => User(photos[])
  2. User => Photo[user]
  3.  
  4. photo {
  5.     id,
  6.     url,
  7.     user
  8. }
  9. user {
  10.     id,
  11.     name,
  12.     photos[]
  13. }
  14.  
  15. {
  16.     "id": 1,
  17.     "name": "user 1"
  18.     photos: [
  19.         {
  20.             "id": 1,
  21.             "url": "photo.com/photo1"
  22.         },
  23.         {
  24.             "id":  2,
  25.             "url": "photo.com/photo2"
  26.         }
  27.     ]
  28. }
  29.  
  30.  
  31. {
  32.     "url": "photo.com/photo1"
  33. }
  34.  
  35. {
  36.     "url": "photo.com/photo2"
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement