Skip to content

beaconFUN/supsnap-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supsnap-server

about

the api server for surprise-snap. match users in the same place, order to supsnap-camera-server to take a snapshot, receive snapshot from it, and broadcast snapshot to users.

install

usage

initial build

./build.sh

at docker-compose version 1.14.0, docker-compose run docker-compose build automatically if container have not built yet. so you can skip this step by your docker-compose environment.

run

./run.sh

reset db

./kill_db.sh

apis

all http request method is POST

get place

POST /get_place

get place by beacon data

get visiter

POST /visiter

get visiter by beacon and user data

delete visiter

POST /delete_visiter

delete visiter by visiter data

get image

POST /get_image

get full size image by visiter data

get thum

POST /get_thum

get thumbnail by visiter data

get snap state

POST /get_snap_state

get latest supsnap informations by visiter data

support debugging

below functions available when only debug mode.

app.run(debug=True)

api tester(simple http client)

access document-root of supsnap-server

debugging api

you can get each models informations

GET /models/(Beacon|Place|Snap|Visiter)

get all data in each models

GET /models/(Beacon|Place|Snap|Visiter)/(id)

get one data

About

サプライズスナップのサーバ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published