Source of the Aaveg 17 website (aaveg.net) in Laravel PHP. Also serves JSON APIs for the Apps.
- All routes must be hit with the base
https://aaveg.net
. Note thehttps
. - Every response is a JSON object, with two keys -
status_code
andmessage
- Status codes follow standard HTTP code conventions - a
200
is a successful hit, and a4XX
is an error.
Path | Description |
---|---|
/ |
Splash page |
/scoreboard |
Scoreboard page |
/about |
About Aaveg page |
/team |
Team page |
/admin or /admin/login |
Admin Login |
/blog |
Blog page |
/blog/single/{blog_id} |
View blog with given blog_id |
/blog/archives |
View all blog posts |
Returns scores along with event details, grouped by cup
none
{
"status_code": Integer,
"message": {
"Culturals": [
{
"event_name": String,
"event_category": String,
"event_id": Integer,
"diamond_score": Float,
"agate_score": Float,
"coral_score": Float,
"jade_score": Float,
"opal_score": Float
},
],
"Sports": [
{
"event_name": String,
"event_category": String,
"event_id": Integer,
"diamond_score": Float,
"agate_score": Float,
"coral_score": Float,
"jade_score": Float,
"opal_score": Float
},
],
"Miscellaneous": [
{
"event_name": String,
"event_category": String,
"event_id": Integer,
"diamond_score": Float,
"agate_score": Float,
"coral_score": Float,
"jade_score": Float,
"opal_score": Float
},
]
}
}
Returns scores as an array
####Parameter
none
{
"status_code": Integer,
"message": [
{
"event_name": String,
"event_category": String,
"event_id": Integer,
"diamond_score": Float,
"agate_score": Float,
"coral_score": Float,
"jade_score": Float,
"opal_score": Float
}
]
}
Returns scores along with event details, given
event_name
{
"event_name" : String
}
{
"status_code": Integer,
"message": [
{
"event_id": Integer,
"diamond_score": Float,
"agate_score": Float,
"coral_score": Float,
"jade_score": Float,
"opal_score": Float,
"event_name": String,
"event_start_time": String->"hh:mm:ss",
"event_end_time": String->"hh:mm:ss",
"event_venue": String,
"event_desc": String,
"event_date": String->"yyyy-mm-dd",
"event_cluster": String,
"event_category": String
}
]
}
Returns event details of all events, grouped by cluster
none
{
"status_code": Integer,
"message": {
String->Cluster : [
{
"event_id": Integer,
"event_name" : String,
"event_start_time": String->"hh:mm:ss",
"event_end_time": String->"hh:mm:ss",
"event_venue": String,
"event_desc": String,
"event_date": String->"yyyy-mm-dd",
"event_cluster": String,
"event_category": String
},
]
}
}
Returns event details of all events, as an array
none
{
"status_code": Integer,
"message": [
{
"event_id": Integer,
"event_name" : String,
"event_start_time": String->"hh:mm:ss",
"event_end_time": String->"hh:mm:ss",
"event_venue": String,
"event_desc": String,
"event_date": String->"yyyy-mm-dd",
"event_cluster": String,
"event_category": String
},
]
}
Returns event names of all events
none
{
"status_code": Integer,
"message": [
String,
]
}
Returns event details of a single event given
event_name
{
"event_name" : String
}
{
"status_code": Integer,
"message": {
"event_id": Integer,
"event_name" : String,
"event_start_time": String->"hh:mm:ss",
"event_end_time": String->"hh:mm:ss",
"event_venue": String,
"event_desc": String,
"event_date": String->"yyyy-mm-dd",
"event_cluster": String,
"event_category": String
},
}
Returns all blog posts
none
{
"status_code": Integer,
"message": [
{
"blog_id": Integer,
"author_name": String,
"title": String,
"content": String->HTML,
"subtitle": String,
"created_at": String->"yyyy-mm-mm hh:mm:ss"
},
]
}
Returns latest n blog posts, given
post_count
{
"post_count": Integer
}
{
"status_code": Integer,
"message": [
{
"blog_id": Integer,
"author_name": String,
"title": String,
"content": String->HTML,
"image_path": String->Base64,
"subtitle": String,
"created_at": String->"yyyy-mm-mm hh:mm:ss"
},
]
}
Returns blog post of the given
blog_id
(functions like before)
When
blog_id_end
is supplied, returns an array of blog posts
When
blog_id_end
is supplied, returns an array of blog posts
only_image
parameter only matters when you DON'T specifyblog_id_end
only_image
: "yes" -> Nothing but image is returned
only_image
: "no" -> Everything BUT the image is returned
only_image
: empty -> Everything is returned
{
"blog_id": Integer
"blog_id_end": Integer->Optional
"only_image": String->Optional
}
When only blog_id is supplied :
{
"status_code": Integer,
"message": {
"blog_id": Integer,
"author_name": String,
"title": String,
"content": String->HTML,
"image_path": String->Base64,
"subtitle": String,
"created_at": String->"yyyy-mm-mm hh:mm:ss"
}
}
When blog_id_end is also supplied :
{
"status_code": Integer,
"message": [
{
"blog_id": Integer,
"author_name": String,
"title": String,
"subtitle": String,
"created_at": String->"yyyy-mm-mm hh:mm:ss"
},
]
}
Returns list of blog ids
none
{
"status_code": Integer,
"message": [
Integer,
]
}
Returns list of authors
none
{
"status_code": Integer,
"message": [
String,
]
}
Returns list of post titles
none
{
"status_code": Integer,
"message": [
String,
]
}