MerryFairyTalesAD440 / API

1 stars 2 forks source link

All Methods "/Books/Pages/Languages/Text" #90

Open niss3n opened 5 years ago

FrancescoWard commented 5 years ago

Initial push for all methods text.

Test : send a POST/PUT/DELETE/GET to : https://ad4401boxfransprint263s2plkbwxejg.azurewebsites.net/v1/books/{bookId}/pages/{pageId}/languages/{languageCode}/text

with the following body :

{
    "id": "foobar",
    "description": "test",
    "author": "barbaz",
    "cover_image": "blank2",
    "title": "aBook",
    "pages": [
        {
            "number": "1",
            "image_url": "https://imageurl_page1_image1.png",
            "languages": [
                {
                    "language": "en_US",
                    "text_url": "https://myupdatedtexturl.txt",
                    "audio_url": null
                },
                {
                    "language": "fr_FR",
                    "text_url": "helloworld",
                    "audio_url": null
                }
            ]
        },
        {
            "number": "2",
            "image_url": "https://imageurl_page2_image2.png",
            "languages": [
                {
                    "language": "en_US",
                    "text_url": "mytesturl.txt",
                    "audio_url": null
                },
                {
                    "language": "fr_FR",
                    "text_url": "francescoTestUrl.txt",
                    "audio_url": null
                }
            ]
        }
    ]
}

Pull request : #102 wiki : https://github.com/MerryFairyTalesAD440/API/wiki/POST---PUT-text Estimated time : 2 hrs Actual time spent : 3 hrs