Skip to content

KarlKode/hz2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hz2015

We only accept Swiss numbers:

  • removing +41/0041
  • only allow 078...

1) POST /users/

Request

{
  contacts: [],
  id: phone#
}

Response

Code 200
{ id: #}
Code ~200
{ error: ..., error_msg: "..."}

For upcomings request we require that the X-User=# and X-Event HTTP-Headers is set

2) GET /events/

Request

{ 
  lng: longitude,
  lat: latitude
}

Response

{
  [{ 
    id: uuid4,
    title: "foobar",
    img_url: "http://...",
    friends: [],
    attending: BOOL
  },{..}]
}

3) POST /photos/

Request -> FILE upload

Response

{
  id: uuid,
  img: {
    big: {url: "http://..", height:222, width:333},
    small: {url: "http://..", height:222, width:333},
    blured: {url: "http://..", height:222, width:333},
  }
}

4) GET /friends/

Request

{
}

Response

{
  [{
    id: #,
    img: {
      big: {url: "http://..", height:222, width:333},
      small: {url: "http://..", height:222, width:333},
      blured: {url: "http://..", height:222, width:333},
    },
    lat: latitude,
    lng: longitude
  },..]
}

5) PUT /photos/UUID

Request

{
  lng: longitude,
  lat: latitude,
  friends: [#,  ...],
  public: BOOL
}

Response

{
  lng: longitude,
  lat: latitude,
  friends: [#,  ...],
  public: BOOL
}

PHOTO JSON:

{
  id: UUID,
  img: {
    big: {url: "http://..", height:222, width:333},
    small: {url: "http://..", height:222, width:333},
    blured: {url: "http://..", height:222, width:333},
  },
  public: BOOL,
  lng: longitude,
  lat: latitude,
  user: {
    id: #,
    img: photoJSON
  }
}

6) GET /photos/

Response

{
  [{...}, ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •