Skip to content

AKEevee/CultureAdventureAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CultureAdventureAPI

Endpoints

GET /listbooks Returns a list of available books
Format:
{
title: string,
image: string (is the URL of the image),
first page number : 1,
}

GET /images?book=&img= Returns a png image
book: title of book
img: name of img (main.png for cover img, 1.png for page 1, 2.png for page 2, etc)

POST /getpage OR GET /getpage?bookTitle=&page= Returns details of page
bookTitle: title of book the page belongs to
page: page number/id needed
Format:
{
audio: string (URL of audio file)
content: string (context of page)
image: string (URL of image)
options: [
header: string, linkedPage: string (page number)
]
}

Important links

api hosted on: http://ai.bdp.blue/ (root has internal server error for the funni and to ward off trolls) (IP is 34.97.37.148) access the mongodb server with this uri (don't share): mongodb://api:Team4096isthebest@34.87.15.250:37017

Other info

also the config file for the apache is in /etc/apache2/sites-available/000-default.conf and the defalut-ssl.conf is for 443

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors