Skip to content

magicsung/tipsy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#README

##Link Link to pa9.club

##API v1

#####All Events:

/api/v1/events

{	
-	metadata: {
		total: integer
		},
-	data: [
	-	{
			id: integer,
			title: "string",
			image: "img_url",
		-	dj: [
			-	{
					id: integer,
					name: "string",
					url: "dj_show_page_url"
				}
			]
		}
	]
}

#####Show Events:

/api/v1/events/:id

#####Categories :

/api/v1/categories

#####Stores :

/api/v1/stores

-	metadata: {
		total: integer
		},
-	data: [
	-	{
	      id: integer,
	      category_id: integer,
	      name: "string",
	      photo: "photo_url",
	      phone: "string",
	      description: "string",
	      city: "string",
	      address: "string",
	      lat: "string",
	      lon: "string",
	      comments_count: integer,
	      updated_at: "2015-11-01"
		}
	]
}

#####Stores :

/api/v1/stores/:id


-	{
	  id: integer,
	  category_id: integer,
	  name: "string",
	  photo: "photo_url",
	  phone: "string",
	  description: "string",
	  city: "string",
	  address: "string",
	  lat: "string",
	  lon: "string",
	  hours_monday: "string",
	  hours_tuesday: "string",
	  hours_wensday: "string",
	  hours_thursday: "string",
	  hours_friday: "string",
	  hours_saturday: "string",
	  hours_sunday: "string",
	  comment: [
			{
				"photo": "url",
				"rating": integer,
				"content": "string",
				"user": "string",
				"time": "string"(tims ago)
			}
		]
	}
	

#####Show Dj :

/api/v1/djs/:id

#####Api login :

/api/v1/login

Facebook access_token

#####Api logout :

/api/v1/logout

#####Create comment :

/api/v1/comments

# method => post
params{
	"auth_token": string,
	"rating": integer, # 1 to 5 
	"content": string, 
	"store_id": integer
}

#####Delete comment :

/api/v1/comments/:id

method => delete
params{
	"auth_token": string
}

#####Confirm QRcode :

/api/v1/confirm

method => post
params{
	"auth_token": string,
	"qrcode": string
}

#####Get QRcode :

/api/v1/getvip

method => get
params{
	"auth_token": string
}

result:
{
message: "confirm successfully!",
code: "string"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published