A. Requirement Web Server
The requirement of web server to upload the json source is :
- Must using SSL.
- Request HTTP method is GET.
- Response Content-Type must be an application/json.
- CORS must be allowed for .
If you don't want to use your own web server, you can choose Upload to Gist or as alternative, you are able to upload the json source into GitHub, GitLab, BitBucket, AWS, CDN, etc.
B. Json Data Structure
Json source is your content data in json formatted. This json source is require to be uploaded into your server. So ImgFo application can access your json source.
So here is the structure of json source for your content :
- cover {string} : This is the image link for cover. [required]
- title {string} : This is the title of your content. [required]
- images {array} : This is the array of your images content. [required]
- original {string} : This is the original title of your content.
- genre {string} : This is the genre of your content (use commas to separate).
- author {string} : This is the author name of your content.
- chapter {string} : This is the chapter number of your content.
- release_date {string} : This is the release date of your content.
- status {string} : This is the project status of your content.
- isbn {string} : This is the isbn code of your content (use commas to separate).
- publisher {string} : This is the publisher name of your content.
- translator {string} : This is the translator name of your content.
- language {string} : This is the language of your content.
- backlink {string} : This is the link going back to your website.
- download {string} : This is the link to download your content.
- description {string} : This is the description of your content.
- item_per_page {string} : This is to set how many item content to display per page. Default is 50.
- use_comment {bool|string} : This is to display disqus comment box. Default is true.
Note:
- chapter value must be string number.
- item_per_page value must be string number.
- description value is better to not be more than 250 chars.
We use GitLab + GitHack CDN :
Click here to see the example json source.
C. Rest API
API to Generate Link
Use this API to generate link of your data json source link.
Description:
- Method must be POST
- Headers must use Content-Type: application/json
- Body is json format.
- The value of url in json format can be string / array. Use array for multiple generate link in one request.
- For more secure, your json source link must use SSL.
Example Request: