Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - Create controller to fetch chapter data #3

Open
sabelo-n opened this issue May 22, 2019 · 4 comments
Open

[FEATURE] - Create controller to fetch chapter data #3

sabelo-n opened this issue May 22, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@sabelo-n
Copy link
Collaborator

sabelo-n commented May 22, 2019

No description provided.

@sabelo-n sabelo-n added the enhancement New feature or request label May 22, 2019
@michaeldera
Copy link
Owner

So what did we eventually decide on the model of the data. We go with name, id and content?

@sabelo-n
Copy link
Collaborator Author

I am thinking hostname/api/chapter/{chapterNumber}. Then have a map of chapter --> path that returns the path and read the file from disk. This can later on be enhanced to read from anywhere (eg network file system/ object store/ aws s3 etcetera etcetera). Pure HTML would be best then you can style it on the frontend based on the device screen size/ type. Angazi though :p

@michaeldera
Copy link
Owner

So when someone hits the endpoint we just return HTML, or some JSON so that we can pass stuff like the title as well?

@michaeldera
Copy link
Owner

michaeldera commented May 23, 2019

So I added a boilerplate for the controller with a model I propose we use here #4 . I chose that because it fits in well with a schema.org model. I was thinking of using EFCore to model the database using a code-first approach. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants