Cursos / Informática para Internet / Desenvolvimento Front-end II / Aula

arrow_back Aula 14 - Criando um blog dinâmico (parte 2)

Conhecendo a API de consulta de postagens


Vamos conhecer a API de consulta de postagens do nosso blog?

URL

https://autoria-form.herokuapp.com

Nossa API REST tem dois end-points: /blog e /post/<id>. Vamos ver com detalhes:

Listar todas as postagens (retorna json)

[GET] https://autoria-form.herokuapp.com/blog

Esse end-point retorna os dados no formato JSON contendo todas as postagens do nosso blog. Retorna um array contendo objetos com a seguinte estrutura:

{
  "id": "0c40eab6-775b-4037-a149-9b514a0104b9", // ID da postagem
  "titulo": "Some posit the rhetorical squirrel to be less than honest.", // Título da postagem
  "dataPublicacao": "2021-03-24T20:39:55.243Z", // Data da publicação
  "imagem": "/images/img1.jpg", // Imagem da postagem
  "corpo": "Authors often ... to those who look." // Conteúdo da postagem
}

Exemplo: https://autoria-form.herokuapp.com/blog

[{"id":"0c40eab6-775b-4037-a149-9b514a0104b9","titulo":"Some posit the rhetorical squirrel to be less than honest.","dataPublicacao":"2021-03-24T20:39:55.243Z","imagem":"/images/img1.jpg","corpo":"Authors often misinterpret the camel as a fair tiger, when in actuality it feels more like an inventive apricot. Some tough currants are thought of simply as pomegranates! Some posit the plucky grapefruit to be less than good.\n\nWe can assume that any instance of a shark can be construed as a loyal fish! A grapefruit is a gentle cherry! A chimpanzee is the giraffe of an ant.\n\nIf this was somewhat unclear, one cannot separate sharks from forceful giraffes; A horse is an apple from the right perspective? The impartial orange comes from an intuitive fig.\n\nHaving been a gymnast, the first placid kangaroo is, in its own way, a tiger; We know that a philosophical wolf without apples is truly a nectarine of affectionate goats. Those wolfs are nothing more than squirrels! As far as he is concerned, the literature would have us believe that a cultured fig is not but a frog. A dolphin can hardly be considered an excellent octopus without also being an apricot! Few can name a forceful scorpion that isn't a good seal; A rhetorical peach without apricots is truly a fly of careful cherries! The sociable panda comes from an obedient duck.\n\nSome posit the vivacious duck to be less than credible. Some posit the level hippopotamus to be less than impartial. This could be, or perhaps an instinctive nectarine is a snail of the mind. This is not to discredit the idea that few can name a seemly kumquat that isn't a philosophical currant. A tangerine is a calm fig?\n\nWe can assume that any instance of an owl can be construed as a delightful lime; The cheetah of a kiwi becomes a romantic strawberry. This is not to discredit the idea that the literature would have us believe that a harmonious hamster is not but a turtle. A turtle is a goldfish's kiwi. Spiders are adventurous tigers? By the waythey were lost without the likeable bear that composed their horse. What we don't know for sure is whether or not a crocodile can hardly be considered a self-assured goldfish without also being a currant. We can assume that any instance of a blackberry can be construed as an energetic banana. Having been a gymnast, the literature would have us believe that a generous grape is not but a kiwi;\n\nWe can assume that any instance of a banana can be construed as an industrious lemon. Framed in a different way, the bees could be said to resemble obedient squirrels. A hippopotamus sees a camel as a quick-witted cow!\n\nTo be more specific, authors often misinterpret the scorpion as a tidy hamster, when in actuality it feels more like a responsible goat? Some posit the creative scorpion to be less than impartial. Those snakes are nothing more than birds. A vivacious lemon is a monkey of the mind. The fabulous pineapple reveals itself as a shy cherry to those who look."},{"id":"421f2bab-2882-4e3c-93f7-fda1a9050956","titulo":"The first capable lobster is, in its own way, a nectarine.","dataPublicacao":"2021-03-25T20:39:55.243Z","imagem":"/images/img2.jpg","corpo":"Of course, some funny ants are thought of simply as limes. A wolf can hardly be considered a polite blueberry without also being a kangaroo. Nowhere is it disputed that the splendid fly reveals itself as a broad-minded dog to those who look. The cow is a crocodile! It's an undeniable fact, really; the first succinct lemon is, in its own way, a monkey!\n\nOne cannot separate limes from knowledgeable grapes. Before kangaroos, giraffes were only fishes! Some fearless sheeps are thought of simply as blackberries?\n\nAn eagle is a joyous alligator. In ancient times those watermelons are nothing more than dogs. A loving orange's persimmon comes with it the thought that the sedate eagle is a blueberry. Impartial rabbits show us how cranberries can be strawberries. In ancient times the cows could be said to resemble lively nectarines; If this was somewhat unclear, their frog was, in this moment, a faithful fly.\n\nSome sincere alligators are thought of simply as blueberries? As far as we can estimate, the kiwi is a currant! Washing and polishing the car,a grapefruit is an ambitious banana. However, a lion of the sheep is assumed to be a unbiased cranberry. It's an undeniable fact, really; hilarious pears show us how nectarines can be strawberries? As far as we can estimate, we can assume that any instance of a chicken can be construed as a seemly goldfish. However, the grapefruits could be said to resemble credible strawberries; Those limes are nothing more than deers.\n\nA banana is a willing fly. A comfortable alligator without limes is truly a panda of quiet elephants. A tangerine can hardly be considered a succinct camel without also being a chimpanzee. The good lion reveals itself as a painstaking kiwi to those who look."},{"id":"59701541-8662-4205-a0c1-c0d516dd2678","titulo":"If this was somewhat unclear, the rabbits could be said to resemble courageous pandas.","dataPublicacao":"2021-03-26T20:39:55.243Z","imagem":"/images/img3.jpg","corpo":"Extending this logic, some reserved chickens are thought of simply as grapes. The quiet dog reveals itself as a peaceful puppy to those who look. Framed in a different way, some faithful nectarines are thought of simply as bears. In ancient times one cannot separate fishes from tough rabbits. However, a confident orange without pineapples is truly a cranberry of efficient sheeps; Foxes are fearless seals.\n\nThe first sociable apricot is, in its own way, a rabbit. The prunes could be said to resemble dynamic elephants. The polite camel comes from a friendly lion;\n\nA duck of the eagle is assumed to be a philosophical fox. The first relieved blueberry is, in its own way, a hippopotamus! The literature would have us believe that a broad-minded sheep is not but a puppy; A chicken can hardly be considered an emotional goat without also being a sheep. Before chickens, blackberries were only deers. We can assume that any instance of a panda can be construed as a diligent chimpanzee. The wolf is a tiger. We can assume that any instance of an alligator can be construed as a tough panda. In modern times they were lost without the skillful scorpion that composed their lion. After a long day at school and work, the charming kangaroo reveals itself as a helpful octopus to those who look.\n\nExtending this logic, those octopus are nothing more than blueberries; The literature would have us believe that a wonderful apple is not but a scorpion; Frogs are successful dolphins. This is not to discredit the idea that a grape of the giraffe is assumed to be a romantic ant; The determined pineapple reveals itself as a generous lime to those who look? Some posit the calm orange to be less than fine. Good bears show us how peaches can be octopus. One cannot separate blueberries from broad-minded foxes."},{"id":"e47493ad-9b42-4b00-a51b-7802a22bef3d","titulo":"A faithful spider is a peach of the mind?","dataPublicacao":"2021-03-27T20:39:55.243Z","imagem":"/images/img4.jpg","corpo":"As far as we can estimate, an apricot is the hamster of a lemon? Before rabbits, bananas were only pigs. Authors often misinterpret the hippopotamus as a honest nectarine, when in actuality it feels more like a skillful persimmon. Those giraffes are nothing more than camels.\n\nTo be more specific, an owl sees a watermelon as a funny rabbit. The zeitgeist contends that their tiger was, in this moment, a sincere grapes. We know that the apples could be said to resemble impartial fishes. The first exuberant horse is, in its own way, a shark. A snail sees a cranberry as a kind-hearted nectarine! Nowhere is it disputed that one cannot separate wolfs from fabulous raspberries.\n\nAn orange of the pear is assumed to be a thrifty chimpanzee? If this was somewhat unclear, they were lost without the discreet fish that composed their owl. A dolphin is a persimmon from the right perspective? Though we assume the latter, one cannot separate cherries from thoughtful cherries? Extending this logic, the literature would have us believe that a confident melon is not but a bear. The forceful kangaroo reveals itself as an impartial goat to those who look. One cannot separate bears from charming octopus! A camel sees a fox as a hilarious grapefruit. Sensitive deers show us how dolphins can be horses. Before puppies, chimpanzees were only cats.\n\nRecent controversy aside, the first efficient octopus is, in its own way, a grapefruit. What we don't know for sure is whether or not some posit the energetic sheep to be less than upbeat. In modern times a grape is a strawberry's lion. Nowhere is it disputed that a crocodile of the nectarine is assumed to be a sedate tangerine? Grapes are nice seals; Authors often misinterpret the lobster as an amiable rat, when in actuality it feels more like a gregarious hippopotamus! The knowledgeable kiwi comes from a neat melon. A polite tiger is a plum of the mind. A sympathetic chimpanzee's blueberry comes with it the thought that the detailed kumquat is a wolf? It's an undeniable fact, really; some posit the forceful nectarine to be less than skillful.\n\nThey were lost without the intelligent crocodile that composed their squirrel. Of course, the spider of a tiger becomes a gentle lime; It's an undeniable fact, really; one cannot separate bees from reserved monkeys. Their squirrel was, in this moment, a lively turtle! Of course, strawberries are plucky tigers.\n\nBefore zebras, raspberries were only rabbits. Grapes are splendid peaches? Cheerful pandas show us how hamsters can be lemons. A lime is a lovely turtle. The first gentle strawberry is, in its own way, a tangerine. Pro-active pigs show us how lobsters can be cats? Shouting with happiness, the fig is a blueberry. The discreet goldfish reveals itself as a humorous pig to those who look! The zeitgeist contends that a goldfish can hardly be considered a courageous cat without also being a monkey!\n\nWaking to the buzz of the alarm clock, before dolphins, melons were only blueberries. A straightforward watermelon's blueberry comes with it the thought that the witty pineapple is a plum. We can assume that any instance of a cat can be construed as a loyal kitten. An owl can hardly be considered a receptive rat without also being a cherry. Some assert that the courageous panda reveals itself as a plucky alligator to those who look. If this was somewhat unclear, the dashing cranberry comes from a decisive grapes. A pro-active ant without blueberries is truly a kiwi of self-assured flies.\n\nRecent controversy aside, the monkey of a zebra becomes a reliable fig; After a long day at school and work, an impartial currant's scorpion comes with it the thought that the communicative lobster is a bird. Few can name a decorous wolf that isn't a lively pomegranate? The blueberry of a sheep becomes a good rat. A self-confident hamster's lion comes with it the thought that the energetic pear is an owl; Shouting with happiness, they were lost without the confident lemon that composed their lemon. Apples are diligent hamsters."},{"id":"300d1ab1-4eb7-4808-a80a-cd0e8a645dfe","titulo":"We know that a rat can hardly be considered a plucky watermelon without also being a cat.","dataPublicacao":"2021-03-28T20:39:55.243Z","imagem":"/images/img5.jpg","corpo":"A cooperative octopus is a scorpion of the mind. Authors often misinterpret the monkey as a warm shark, when in actuality it feels more like an industrious cheetah. A productive goat is a pig of the mind. They were lost without the diligent cherry that composed their raspberry. A dog can hardly be considered an entertaining kumquat without also being a prune! By the waywe can assume that any instance of a puppy can be construed as a discreet rat. Before owls, frogs were only plums! Though we assume the latter, one cannot separate peaches from rational pineapples. One cannot separate pandas from tidy seals.\n\nIn modern times a nectarine is a seal from the right perspective. Fearless grapefruits show us how tangerines can be sheeps? The prunes could be said to resemble intelligent nectarines. Their cheetah was, in this moment, a fearless blackberry. In ancient times a cranberry is a deer's chimpanzee. A seal is a pear's frog? In ancient times we can assume that any instance of a lime can be construed as a delightful goldfish.\n\nBy the waythe unassuming zebra reveals itself as a sensible grapes to those who look. One cannot separate flies from sensitive apples. The prune is a hamster. Unfortunately, that is wrong; on the contrary, a grapes is a versatile persimmon! Recent controversy aside, charming watermelons show us how cherries can be crocodiles. The zeitgeist contends that a sincere bird's grape comes with it the thought that the generous cheetah is a seal. What we don't know for sure is whether or not a patient squirrel is a pear of the mind!\n\nFar from the truth, the pig is a seal. Far from the truth, the vivacious cheetah reveals itself as a dazzling octopus to those who look; After a long day at school and work, a kiwi is a grapefruit from the right perspective; A puppy of the lime is assumed to be a neat strawberry! One cannot separate flies from proud persimmons? Those giraffes are nothing more than snails. Reliable ducks show us how pineapples can be strawberries. As far as he is concerned, a blackberry sees a chimpanzee as a punctual kumquat. The bear of a cherry becomes a reliable dog.\n\nA glorious fig's lime comes with it the thought that the instinctive nectarine is an eagle; An amicable watermelon's deer comes with it the thought that the gentle banana is a camel. Shouting with happiness, a succinct chicken without figs is truly a hamster of cheerful rabbits?\n\nAfter a long day at school and work, a prune is a blueberry from the right perspective! We know that the tidy tangerine reveals itself as a gregarious tiger to those who look. This is not to discredit the idea that those tigers are nothing more than dogs! They were lost without the sincere currant that composed their cherry. We can assume that any instance of a pomegranate can be construed as an endurable rabbit. The zebra of a kiwi becomes a level camel.\n\nOf course, few can name an entertaining kangaroo that isn't a philosophical lemon. The literature would have us believe that a modest horse is not but a grape; A hard-working duck without raspberries is truly a lemon of honest bears. Those limes are nothing more than cheetahs. An agreeable duck is a fig of the mind!"},{"id":"f9df6937-ff7c-4cc2-87d1-563a6bd86ac6","titulo":"Some frank ants are thought of simply as sharks.","dataPublicacao":"2021-03-29T20:39:55.243Z","imagem":"/images/img6.jpg","corpo":"Goats are generous prunes. We know that we can assume that any instance of a snail can be construed as a good lime. As far as we can estimate, a debonair kitten without pomegranates is truly a cherry of adventurous giraffes. An eagle is a wolf from the right perspective. Draped neatly on a hanger, the cheetahs could be said to resemble romantic scorpions. A tangerine is a delightful banana.\n\nThe literature would have us believe that a skillful orange is not but a spider! In ancient times a crocodile is the fish of a grape. The kumquat of a crocodile becomes an instinctive fish.\n\nBefore cranberries, bears were only dogs. Some polite flies are thought of simply as frogs. A tiger can hardly be considered a talented nectarine without also being a prune.\n\nThe relieved watermelon reveals itself as a conscientious goat to those who look. Before monkeys, pandas were only ants? Few can name a upbeat kiwi that isn't a lovely chicken. Authors often misinterpret the apple as a willing duck, when in actuality it feels more like a fabulous fly. An efficient blueberry's elephant comes with it the thought that the powerful lime is a kangaroo. A fish of the kitten is assumed to be a wonderful ant.\n\nThey were lost without the amiable pig that composed their grapes. The grapefruit of a fly becomes an encouraging dolphin. Some posit the generous lime to be less than lovely. A polite bird's peach comes with it the thought that the self-confident bear is a turtle; What we don't know for sure is whether or not a warmhearted hippopotamus without flies is truly a plum of kind cows;\n\nA prune is the kiwi of a hippopotamus. What we don't know for sure is whether or not a lime is the dolphin of a panda. As far as we can estimate, some posit the warmhearted turtle to be less than discreet. Far from the truth, some posit the agreeable bee to be less than easygoing! Few can name a righteous cat that isn't an obedient grapefruit? A hippopotamus is the turtle of a kiwi? As far as he is concerned, the first hard-working pig is, in its own way, a rat.\n\nA sensible apple is a dog of the mind. One cannot separate oranges from willing grapes; A credible duck without dolphins is truly a horse of brave pears? Some entertaining snakes are thought of simply as chickens. To be more specific, we can assume that any instance of a dog can be construed as a smiling fig? The literature would have us believe that a dashing monkey is not but a hippopotamus. Before flies, tangerines were only cranberries! We know that few can name a discreet spider that isn't an independent rabbit! This is not to discredit the idea that a tangerine of the bee is assumed to be an elated sheep;\n\nThe bird of a seal becomes a humorous prune. The first amusing bear is, in its own way, a frog! A fish is a grapes's monkey. A snake sees a lemon as a reserved scorpion. Though we assume the latter, before limes, tigers were only squirrels.\n\nA hippopotamus of the octopus is assumed to be an instinctive turtle! The literature would have us believe that a reliable fig is not but a squirrel? The elephants could be said to resemble gregarious blackberries.\n\nA tangerine is an impartial squirrel? One cannot separate tangerines from bright chickens! However, the snails could be said to resemble rhetorical rats. A bear of the elephant is assumed to be a modest tiger. We can assume that any instance of a snake can be construed as a steadfast lobster! After a long day at school and work, the lemon is a goat! We can assume that any instance of a tangerine can be construed as a loving horse. Few can name an energetic lobster that isn't a cheerful horse."},{"id":"15fc8773-8f0f-446f-9f10-b081c11a6c19","titulo":"The crocodile is a persimmon.","dataPublicacao":"2021-03-30T20:39:55.243Z","imagem":"/images/img7.jpg","corpo":"A nectarine can hardly be considered a harmonious peach without also being a camel. It's an undeniable fact, really; the first sensitive elephant is, in its own way, a rat! By the waya bird sees a kiwi as a self-assured eagle. We can assume that any instance of a prune can be construed as a decisive monkey. After a long day at school and work, a sheep of the strawberry is assumed to be a good bird. Some posit the witty banana to be less than placid! Some delightful grapes are thought of simply as nectarines?\n\nHowever, before melons, pandas were only lobsters. A plum of the tangerine is assumed to be a reserved shark. Authors often misinterpret the fly as a righteous monkey, when in actuality it feels more like a righteous kiwi. Framed in a different way, the literature would have us believe that an intelligent hamster is not but a fly? Thrifty pineapples show us how pineapples can be bees. The fearless frog reveals itself as a witty sheep to those who look. One cannot separate prunes from reliable pears. A duck is an intuitive goldfish? The delightful kumquat comes from a persistent sheep! Some tidy figs are thought of simply as giraffes.\n\nAn apple of the lime is assumed to be an enchanting camel. Peaceful foxes show us how blueberries can be grapefruits. They were lost without the forceful deer that composed their prune. A thrifty zebra is a lime of the mind! A wolf of the chimpanzee is assumed to be a shrewd strawberry. They were lost without the righteous crocodile that composed their puppy.\n\nOne cannot separate hippopotamus from lucky lobsters. Some assert that one cannot separate strawberries from decorous persimmons. Nowhere is it disputed that a watermelon sees a shark as a persistent elephant. The lemon of a giraffe becomes a quiet blueberry!\n\nTheir hamster was, in this moment, a calm lion. A giraffe is a succinct kumquat. As far as he is concerned, the first agreeable blueberry is, in its own way, a monkey.\n\nA faithful apple's sheep comes with it the thought that the calm melon is a chimpanzee! As far as we can estimate, before snakes, squirrels were only pigs; The first discreet crocodile is, in its own way, a pomegranate. To be more specific, we can assume that any instance of a hippopotamus can be construed as a nice grapefruit; They were lost without the fair banana that composed their panda. Shouting with happiness, resolute raspberries show us how limes can be cats. The literature would have us believe that a responsible snail is not but a horse."},{"id":"5447f2c1-19ad-44c2-a770-70e67bc810cf","titulo":"It's very tricky, if not impossible, a delightful raspberry's elephant comes with it the thought that the humorous peach is a lime.","dataPublicacao":"2021-03-31T20:39:55.243Z","imagem":"/images/img8.jpg","corpo":"As far as he is concerned, the joyous rat reveals itself as an independent bear to those who look? In recent years, a blackberry sees an alligator as an easygoing elephant. Before wolfs, figs were only chimpanzees. This could be, or perhaps an owl of the nectarine is assumed to be an amused snake. In modern times few can name an eminent tangerine that isn't a selective watermelon. A deer sees a rabbit as a pro-active grapes;\n\nA fig of the persimmon is assumed to be a quiet ant. Draped neatly on a hanger, they were lost without the dynamic plum that composed their watermelon. They were lost without the painstaking turtle that composed their zebra?\n\nA strawberry is a grapefruit's hamster? Before frogs, lemons were only bees. As far as he is concerned, the pro-active alligator comes from a pioneering shark. What we don't know for sure is whether or not a raspberry can hardly be considered a relieved apple without also being an octopus. The first brave strawberry is, in its own way, a lime. The optimistic kumquat reveals itself as a creative cherry to those who look!\n\nA careful panda is a grape of the mind. The kiwis could be said to resemble wise octopus. It's an undeniable fact, really; the cooperative chimpanzee comes from a happy rabbit; Some posit the knowledgeable fly to be less than adaptable. The snake of a cow becomes an enthusiastic deer. Decisive tangerines show us how nectarines can be pomegranates.\n\nFew can name a decorous rabbit that isn't an emotional octopus. After a long day at school and work, a persimmon is a camel from the right perspective. Some philosophical persimmons are thought of simply as pomegranates.\n\nIn recent years, those goldfishes are nothing more than snails. A puppy can hardly be considered a quiet apricot without also being a grapes. The literature would have us believe that a self-assured cat is not but a persimmon. Before blackberries, crocodiles were only blackberries. The first endurable kiwi is, in its own way, a hamster.\n\nOf course, authors often misinterpret the lime as an entertaining rat, when in actuality it feels more like an impartial rabbit; The bees could be said to resemble seemly peaches! Few can name a pro-active plum that isn't an amicable raspberry!\n\nA sincere squirrel's snail comes with it the thought that the decisive pomegranate is a spider. Far from the truth, the grapefruits could be said to resemble trustworthy bears. The versatile bird reveals itself as a cooperative cherry to those who look.\n\nIt's very tricky, if not impossible, those cows are nothing more than cherries. The fig is a goat. We know that we can assume that any instance of a bee can be construed as a jolly bear. Waking to the buzz of the alarm clock, a zebra is a generous lion."},{"id":"0518de0b-b017-44a0-93f0-c2c3554bbe21","titulo":"They were lost without the quiet grape that composed their puppy.","dataPublicacao":"2021-04-01T20:39:55.243Z","imagem":"/images/img9.jpg","corpo":"A duck is a shy cat. One cannot separate sheeps from helpful horses; Those grapes are nothing more than foxes. In recent years, a seal is a snail's pineapple. Some posit the independent grapefruit to be less than kind-hearted! Their fish was, in this moment, a honorable peach.\n\nA level goldfish is a squirrel of the mind. Bears are resolute rabbits. The fly of an eagle becomes a compassionate melon. They were lost without the excited fox that composed their bear. Some adventurous sharks are thought of simply as currants? In recent years, the amicable cheetah comes from an enthusiastic kiwi? We know that a harmonious apple's raspberry comes with it the thought that the pioneering puppy is a fox. Some sympathetic goats are thought of simply as cherries! They were lost without the rhetorical rabbit that composed their strawberry.\n\nA fig sees a deer as a tough pear. A pear is a mature peach. Some witty grapefruits are thought of simply as monkeys; A nice raspberry without frogs is truly a lobster of discreet snails! Their fox was, in this moment, a loyal rabbit. The frog of a melon becomes a courageous fish. It's an undeniable fact, really; the nice sheep comes from a plucky fish! A shark of the prune is assumed to be a capable scorpion; The kiwi is a zebra.\n\nA lobster is a puppy from the right perspective. Authors often misinterpret the cheetah as a wise grapes, when in actuality it feels more like a relieved hippopotamus? It's very tricky, if not impossible, the kind hippopotamus reveals itself as a communicative horse to those who look. A grapes is the eagle of a turtle!\n\nWe know that the hamster is a chimpanzee. Having been a gymnast, a dolphin sees a squirrel as a tidy chicken. The impartial horse reveals itself as a wise peach to those who look!\n\nThe goldfishes could be said to resemble plucky turtles. If this was somewhat unclear, the alligators could be said to resemble kind-hearted squirrels. Few can name a plucky snake that isn't an instinctive rat. Before rats, ants were only bees. The puppies could be said to resemble instinctive limes. A frog is a courageous panda. Having been a gymnast, a pig is a fair-minded pig.\n\nAn owl is an octopus from the right perspective! The octopus is a dog! The literature would have us believe that a shrewd snail is not but a squirrel; They were lost without the nice grapefruit that composed their alligator; Those blackberries are nothing more than blueberries."},{"id":"3ee1350b-5051-4e42-b50d-d74ebef4e5a4","titulo":"They were lost without the energetic owl that composed their turtle.","dataPublicacao":"2021-04-02T20:39:55.243Z","imagem":"/images/img10.jpg","corpo":"In modern times one cannot separate deers from perfect giraffes. Some posit the amused fox to be less than witty? As far as we can estimate, an elated raspberry's camel comes with it the thought that the fearless fig is a cherry. A dolphin can hardly be considered a seemly cat without also being a plum. Few can name a fair ant that isn't a determined pomegranate. The literature would have us believe that a communicative duck is not but a pig. Waking to the buzz of the alarm clock, a raspberry is the rabbit of a melon! The first perfect eagle is, in its own way, a horse?\n\nIn ancient times the persimmon of an orange becomes a resourceful grapes. A persimmon is an exuberant lion. Shouting with happiness, we can assume that any instance of an apple can be construed as an exclusive grapefruit! Recent controversy aside, a pomegranate is a unassuming lemon. Few can name a convivial eagle that isn't a successful owl. Unfortunately, that is wrong; on the contrary, the lemon of a blackberry becomes a reflective turtle; In recent years, authors often misinterpret the frog as an enchanting fly, when in actuality it feels more like an imaginative turtle. Extending this logic, before tigers, plums were only grapes. A chimpanzee of the horse is assumed to be a wise kitten! A cat is a charming cherry.\n\nThe tangerine of a chicken becomes a debonair lion? A crocodile is a fish's cheetah. A sheep of the dolphin is assumed to be a likeable squirrel. However, a rational lobster without tangerines is truly a scorpion of emotional rabbits; The zeitgeist contends that a sheep is the cow of a watermelon! They were lost without the convivial shark that composed their persimmon. A scorpion is a cherry's bear. A bee is the prune of a duck. The literature would have us believe that an amusing chicken is not but a horse?\n\nA sheep is a cheetah from the right perspective. Nowhere is it disputed that an encouraging scorpion's shark comes with it the thought that the unusual fox is a pig? To be more specific, they were lost without the fair frog that composed their bee. Draped neatly on a hanger, their cheetah was, in this moment, a willing fig? To be more specific, a wolf can hardly be considered a pro-active duck without also being a tangerine. Framed in a different way, the giraffes could be said to resemble succinct pigs. Some assert that affable melons show us how birds can be alligators.\n\nRecent controversy aside, a pineapple sees a hippopotamus as an entertaining plum. The first tough tangerine is, in its own way, a seal; They were lost without the bright hippopotamus that composed their frog. A pineapple is a trustworthy blueberry. They were lost without the honest currant that composed their bird. Authors often misinterpret the blueberry as an optimistic cheetah, when in actuality it feels more like a shrewd persimmon. However, before pomegranates, dolphins were only goldfishes. Shouting with happiness, a grape is a lion's alligator? Their melon was, in this moment, an exuberant strawberry.\n\nSome posit the fabulous cherry to be less than warm. By the wayan owl is the owl of a crocodile. Far from the truth, the watermelons could be said to resemble placid cranberries. We can assume that any instance of a pomegranate can be construed as a loving kitten. A watermelon is a seemly tangerine! The puppies could be said to resemble exclusive seals; Though we assume the latter, an encouraging apple's fly comes with it the thought that the diplomatic persimmon is a hippopotamus; In recent years, the first seemly lime is, in its own way, a snake. What we don't know for sure is whether or not few can name a courageous seal that isn't an intelligent snail!\n\nFew can name a rhetorical strawberry that isn't a lucky kangaroo. Extending this logic, a grapes is the pomegranate of a dog. Their dolphin was, in this moment, an alert bee?\n\nWe can assume that any instance of a cow can be construed as a plausible cow? The cat is a melon. A cheerful persimmon is a deer of the mind. A patient bear's lion comes with it the thought that the easygoing peach is a grapes. Framed in a different way, one cannot separate squirrels from determined fishes.\n\nSome posit the talented cheetah to be less than persistent! In recent years, an ambitious blueberry is a goldfish of the mind. The zeitgeist contends that the cats could be said to resemble alluring peaches? A level camel's fig comes with it the thought that the silly wolf is a tiger. Some agreeable pineapples are thought of simply as frogs. Nowhere is it disputed that a lime sees a fig as a reserved cherry; A raspberry of the owl is assumed to be a witty currant; Waking to the buzz of the alarm clock, some righteous prunes are thought of simply as pears. Nowhere is it disputed that they were lost without the calm sheep that composed their puppy; The wolf is a lime;"},{"id":"5d032b57-31c7-4580-9af9-b16d01c735dc","titulo":"In modern times a kind-hearted giraffe without wolfs is truly a watermelon of self-disciplined lemons!","dataPublicacao":"2021-04-03T20:39:55.243Z","imagem":"/images/img11.jpg","corpo":"Washing and polishing the car,a grapefruit of the goat is assumed to be a plucky zebra? A trustworthy banana's bear comes with it the thought that the excited ant is a fish. We can assume that any instance of a blueberry can be construed as a communicative nectarine. In ancient times the first responsible raspberry is, in its own way, a pig. Owls are honest spiders! Their eagle was, in this moment, an amiable snake. Having been a gymnast, some willing persimmons are thought of simply as lemons?\n\nBefore bananas, octopus were only goldfishes. They were lost without the elated fish that composed their grapefruit. A goat is a goat from the right perspective. Some fair kumquats are thought of simply as pandas.\n\nBefore persimmons, strawberries were only fishes. Their bear was, in this moment, a capable zebra; Recent controversy aside, the boundless grapes comes from a funny lion! An enthusiastic snake's tiger comes with it the thought that the funny watermelon is a blackberry. Their dolphin was, in this moment, a romantic zebra. Some thoughtful prunes are thought of simply as foxes? Kind seals show us how spiders can be camels! What we don't know for sure is whether or not before blackberries, lions were only apples? Authors often misinterpret the apricot as a seemly kiwi, when in actuality it feels more like a willing rat."},{"id":"148d2981-2c73-4c66-b123-bfea1cd1cc43","titulo":"By the waythe level tiger reveals itself as an eminent puppy to those who look?","dataPublicacao":"2021-04-04T20:39:55.243Z","imagem":"/images/img12.jpg","corpo":"Far from the truth, a decorous octopus is a spider of the mind. Draped neatly on a hanger, a cheetah sees a chimpanzee as a conscientious panda? Draped neatly on a hanger, a duck is a pleasant lobster. Few can name an independent apricot that isn't a delightful kitten. A creative chicken is a pineapple of the mind. Their blueberry was, in this moment, a placid fly. The giraffe is a cranberry. One cannot separate owls from fearless pomegranates?\n\nWe can assume that any instance of a grapes can be construed as a good goldfish. A peach is a discreet kangaroo. Shouting with happiness, a panda is a cherry's apricot. A goldfish sees an elephant as a sympathetic bear. Few can name a romantic giraffe that isn't a nice pear? Some neat kangaroos are thought of simply as sharks. As far as we can estimate, some posit the confident octopus to be less than nice. A kiwi is a fish from the right perspective.\n\nA passionate panda without cats is truly a horse of intellectual melons. The pig of a camel becomes a conscientious plum. A lively panda without bears is truly a lemon of exuberant raspberries. Some assert that a grape is a panda's cranberry; The chicken of a seal becomes a courageous fish.\n\nThe fishes could be said to resemble nice foxes! In modern times the sympathetic snake reveals itself as an enthusiastic eagle to those who look. Washing and polishing the car,a horse of the sheep is assumed to be a good duck. A scorpion is the sheep of a sheep?\n\nFramed in a different way, their goat was, in this moment, a pleasant monkey. An octopus is a frank fish. Far from the truth, before ants, peaches were only currants! The literature would have us believe that a frank pig is not but a spider. It's very tricky, if not impossible, before hamsters, snails were only giraffes. A hamster of the fly is assumed to be a honorable fig.\n\nPatient hippopotamus show us how tangerines can be zebras? In recent years, authors often misinterpret the bee as a vivacious owl, when in actuality it feels more like a decorous dog! Draped neatly on a hanger, some posit the smiling dolphin to be less than courageous.\n\nA hippopotamus is a kind currant! The lion of a chimpanzee becomes a knowledgeable crocodile. The chimpanzee is a bear. Draped neatly on a hanger, a rabbit is a currant from the right perspective? A cat of the puppy is assumed to be a faithful apple! A dog is a giraffe's watermelon. The conscientious grapes reveals itself as a relieved fish to those who look. After a long day at school and work, the scorpion of a currant becomes a harmonious bear! Waking to the buzz of the alarm clock, one cannot separate bears from skillful snails! Few can name a creative lion that isn't a succinct watermelon."},{"id":"8ce799f0-58c0-4bf7-a3b5-faaabf44bbfa","titulo":"The spiders could be said to resemble impartial puppies.","dataPublicacao":"2021-04-05T20:39:55.243Z","imagem":"/images/img13.jpg","corpo":"In ancient times a shark is a raspberry's raspberry. The first decisive melon is, in its own way, a rat? The exuberant goat comes from a helpful goldfish? A frog is an enchanting goldfish; Some posit the decisive rabbit to be less than excellent. Few can name a punctual pig that isn't a steadfast giraffe? Washing and polishing the car,they were lost without the amused turtle that composed their pear? The amicable dolphin comes from a thoughtful giraffe.\n\nThis is not to discredit the idea that an octopus is a chicken from the right perspective? A cat of the fox is assumed to be an amusing fish. Draped neatly on a hanger, some posit the romantic turtle to be less than fabulous. The coherent cow comes from an entertaining alligator;\n\nThe monkeys could be said to resemble responsible cats. However, those grapefruits are nothing more than chimpanzees? Far from the truth, they were lost without the reserved lime that composed their deer? A patient lion is a seal of the mind. The persimmon is a wolf.\n\nThey were lost without the diplomatic hamster that composed their grapes; Nowhere is it disputed that the literature would have us believe that a wise elephant is not but a deer. Lobsters are powerful plums. Few can name a boundless grapes that isn't a sensitive monkey. Before ducks, pandas were only kumquats. To be more specific, a squirrel of the fig is assumed to be a straightforward bee!\n\nAn enthusiastic grapes is a kitten of the mind. It's very tricky, if not impossible, a plucky duck is a zebra of the mind. A faithful turtle's blackberry comes with it the thought that the amusing cat is a scorpion.\n\nThe apricots could be said to resemble reliable lions. The sociable octopus reveals itself as a fearless banana to those who look; A kumquat of the scorpion is assumed to be a friendly camel. As far as he is concerned, one cannot separate ants from compassionate grapes. A sincere pear's snail comes with it the thought that the capable raspberry is a fox. A snail sees a nectarine as a mature prune?\n\nThe literature would have us believe that an industrious tangerine is not but a chimpanzee. The panda of a hamster becomes an amicable scorpion! Far from the truth, the decisive melon reveals itself as a hard-working tangerine to those who look. Waking to the buzz of the alarm clock, a fish is a likeable strawberry. As far as we can estimate, some posit the endurable duck to be less than gentle. A cherry of the grapefruit is assumed to be a placid cranberry. The elephants could be said to resemble lively frogs? A snail is a courteous spider! In recent years, their duck was, in this moment, a lovely spider.\n\nA goldfish sees a fly as an exuberant puppy. An easygoing snail is an octopus of the mind. A peach is a joyous rat; The zeitgeist contends that a chicken is the cranberry of a zebra. The affectionate camel reveals itself as a succinct sheep to those who look. A bee is a rat from the right perspective. The goat of a puppy becomes an instinctive squirrel. A squirrel can hardly be considered a witty lobster without also being a nectarine. Some instinctive cats are thought of simply as kumquats.\n\nOne cannot separate camels from quick-witted figs! Authors often misinterpret the grapefruit as a sympathetic pear, when in actuality it feels more like a punctual bird? It's very tricky, if not impossible, few can name a persistent strawberry that isn't a fair kiwi. A resourceful giraffe's horse comes with it the thought that the decisive wolf is a fish! As far as he is concerned, a cheetah is a kangaroo's bird. The literature would have us believe that a mature panda is not but an eagle? A righteous blackberry is a lime of the mind.\n\nRecent controversy aside, the kumquat is a snake. Framed in a different way, a good deer without horses is truly a chicken of warmhearted blackberries. Authors often misinterpret the ant as a dynamic bear, when in actuality it feels more like an instinctive hippopotamus. Kittens are dynamic bears. We can assume that any instance of a cow can be construed as an impartial scorpion."},{"id":"cdf132b3-25d8-4cea-a734-f1b7e76e04d9","titulo":"Turtles are sensible goldfishes?","dataPublicacao":"2021-04-06T20:39:55.243Z","imagem":"/images/img14.jpg","corpo":"Few can name a cultured fox that isn't an energetic grapefruit! A dog is a raspberry's cow. An ant is a deer from the right perspective; Authors often misinterpret the pig as a sedate owl, when in actuality it feels more like an exuberant peach. A fig can hardly be considered a coherent chicken without also being a snail? A pomegranate can hardly be considered a loving cheetah without also being a fish. Nowhere is it disputed that an elephant is a successful hippopotamus. Their nectarine was, in this moment, a vivacious camel? The dogs could be said to resemble efficient lobsters. The peaceful octopus reveals itself as a wonderful kumquat to those who look!\n\nIf this was somewhat unclear, a jolly monkey's crocodile comes with it the thought that the loving lemon is a camel. In modern times few can name an instinctive cat that isn't an enthusiastic goldfish; An intellectual alligator is a cow of the mind. Those monkeys are nothing more than rabbits! Having been a gymnast, the unbiased apple reveals itself as a compassionate lobster to those who look? Shouting with happiness, some posit the glorious lobster to be less than pleasant. A fly is a monkey from the right perspective.\n\nThe rabbit of a pig becomes a pro-active snail. Few can name a witty tiger that isn't a dynamic lemon. A cheetah is a diplomatic pear! It's an undeniable fact, really; the first skillful rat is, in its own way, a pineapple. A hamster of the squirrel is assumed to be an amicable cherry.\n\nThey were lost without the sincere squirrel that composed their shark? The nice lime reveals itself as an agreeable seal to those who look! Extending this logic, their tangerine was, in this moment, a peaceful puppy. A seal of the hippopotamus is assumed to be a dazzling bird. A turtle is a raspberry from the right perspective. A tidy grape without snakes is truly a kitten of alluring cranberries? Far from the truth, a rat is the nectarine of a dog; Though we assume the latter, the hippopotamus of a tiger becomes a charming chicken.\n\nSelf-confident sharks show us how nectarines can be hippopotamus; Washing and polishing the car,the pear is a kiwi! Authors often misinterpret the dolphin as a neat cow, when in actuality it feels more like a philosophical snail; This could be, or perhaps a monkey is a fig's dog. A grapefruit sees a chimpanzee as a thoughtful chimpanzee? Before ants, monkeys were only seals? Before eagles, crocodiles were only prunes. Few can name a debonair scorpion that isn't an entertaining pig. Draped neatly on a hanger, their banana was, in this moment, an obedient currant;\n\nBefore lobsters, blackberries were only melons. Some posit the impartial grape to be less than vigorous. The first excellent grapefruit is, in its own way, a shark. By the waya duck can hardly be considered an adaptable tangerine without also being an ant. The literature would have us believe that an amused raspberry is not but a shark! A peaceful apple without kangaroos is truly a nectarine of enchanting oranges! In ancient times some posit the eager puppy to be less than coherent."},{"id":"5783a45d-1d6b-408b-af09-ed7b315e0724","titulo":"This could be, or perhaps the bear is a shark.","dataPublicacao":"2021-04-07T20:39:55.243Z","imagem":"/images/img15.jpg","corpo":"Some assert that the watermelons could be said to resemble sympathetic rats? However, some diplomatic seals are thought of simply as goldfishes! A seal is a shark's currant! Their duck was, in this moment, a good pig.\n\nWe can assume that any instance of a horse can be construed as a smiling seal. Those giraffes are nothing more than figs. We can assume that any instance of a currant can be construed as a debonair apple. Framed in a different way, some posit the thoughtful orange to be less than glorious. The cherries could be said to resemble plucky deers. An imaginative apricot is a monkey of the mind. Authors often misinterpret the rabbit as a upbeat giraffe, when in actuality it feels more like a neat panda;\n\nA chicken is a bee's hamster. In ancient times those cherries are nothing more than snails. Before lobsters, nectarines were only kangaroos. Inventive elephants show us how kangaroos can be spiders. We know that one cannot separate snails from helpful hippopotamus. The conscientious horse comes from a rational giraffe; The elephants could be said to resemble faithful rats. The thoughtful kitten comes from an amused cherry?\n\nThey were lost without the broad-minded banana that composed their sheep! Nowhere is it disputed that the zebra is a rabbit? As far as he is concerned, the literature would have us believe that a tidy prune is not but a strawberry! Of course, few can name a gentle tiger that isn't a proud crocodile; A shark can hardly be considered a philosophical spider without also being a squirrel. Nowhere is it disputed that few can name an impartial raspberry that isn't a warm ant; This is not to discredit the idea that few can name a happy lemon that isn't a modern goldfish!\n\nUnfortunately, that is wrong; on the contrary, a wonderful kitten's banana comes with it the thought that the alert grape is a grapefruit; A grape is the alligator of an alligator! Nowhere is it disputed that a kumquat is the plum of a wolf. One cannot separate chickens from peaceful kittens. A fly is the blackberry of a pineapple."}]

Listar postagem específica (retorna json)

[GET] https://autoria-form.herokuapp.com/post/<id>

Esse end-point retorna os dados no formato JSON contendo uma postagem específica do nosso blog. Retorna um objeto com a seguinte estrutura:

{
  "id": "0c40eab6-775b-4037-a149-9b514a0104b9", // ID da postagem
  "titulo": "Some posit the rhetorical squirrel to be less than honest.", // Título da postagem
  "dataPublicacao": "2021-03-24T20:39:55.243Z", // Data da publicação
  "imagem": "/images/img1.jpg", // Imagem da postagem
  "corpo": "Authors often ... to those who look." // Conteúdo da postagem
}

Exemplo: http://autoria-form.herokuapp.com/post/0c40eab6-775b-4037-a149-9b514a0104b9

{"id":"0c40eab6-775b-4037-a149-9b514a0104b9","titulo":"Some posit the rhetorical squirrel to be less than honest.","dataPublicacao":"2021-03-24T20:39:55.243Z","imagem":"/images/img1.jpg","corpo":"Authors often misinterpret the camel as a fair tiger, when in actuality it feels more like an inventive apricot. Some tough currants are thought of simply as pomegranates! Some posit the plucky grapefruit to be less than good.\n\nWe can assume that any instance of a shark can be construed as a loyal fish! A grapefruit is a gentle cherry! A chimpanzee is the giraffe of an ant.\n\nIf this was somewhat unclear, one cannot separate sharks from forceful giraffes; A horse is an apple from the right perspective? The impartial orange comes from an intuitive fig.\n\nHaving been a gymnast, the first placid kangaroo is, in its own way, a tiger; We know that a philosophical wolf without apples is truly a nectarine of affectionate goats. Those wolfs are nothing more than squirrels! As far as he is concerned, the literature would have us believe that a cultured fig is not but a frog. A dolphin can hardly be considered an excellent octopus without also being an apricot! Few can name a forceful scorpion that isn't a good seal; A rhetorical peach without apricots is truly a fly of careful cherries! The sociable panda comes from an obedient duck.\n\nSome posit the vivacious duck to be less than credible. Some posit the level hippopotamus to be less than impartial. This could be, or perhaps an instinctive nectarine is a snail of the mind. This is not to discredit the idea that few can name a seemly kumquat that isn't a philosophical currant. A tangerine is a calm fig?\n\nWe can assume that any instance of an owl can be construed as a delightful lime; The cheetah of a kiwi becomes a romantic strawberry. This is not to discredit the idea that the literature would have us believe that a harmonious hamster is not but a turtle. A turtle is a goldfish's kiwi. Spiders are adventurous tigers? By the waythey were lost without the likeable bear that composed their horse. What we don't know for sure is whether or not a crocodile can hardly be considered a self-assured goldfish without also being a currant. We can assume that any instance of a blackberry can be construed as an energetic banana. Having been a gymnast, the literature would have us believe that a generous grape is not but a kiwi;\n\nWe can assume that any instance of a banana can be construed as an industrious lemon. Framed in a different way, the bees could be said to resemble obedient squirrels. A hippopotamus sees a camel as a quick-witted cow!\n\nTo be more specific, authors often misinterpret the scorpion as a tidy hamster, when in actuality it feels more like a responsible goat? Some posit the creative scorpion to be less than impartial. Those snakes are nothing more than birds. A vivacious lemon is a monkey of the mind. The fabulous pineapple reveals itself as a shy cherry to those who look."}

Exemplo de uso da API utilizando XMLHttpRequest

const apiUrl = "https://autoria-form.herokuapp.com";

// Utilizando o XMLHttpRequest
function requisitarComXMLHttpRequest() {
  var requisicao = new XMLHttpRequest();
  requisicao.onload = () => console.log(JSON.parse(requisicao.responseText));
  requisicao.open("GET", apiUrl + "/blog", true);
  requisicao.send();
}

requisitarComXMLHttpRequest()

Exemplo de uso da API utilizando aAPI Fetch

const apiUrl = "https://autoria-form.herokuapp.com";

// Utilizando a API Fetch
function requisitarComFetch() {
  fetch(apiUrl + "/blog")
    .then(function (response) {
      response.json().then((data) => console.log(data));
    })
}

requisitarComFetch()

Exemplo de uso da API utilizando jQuery

const apiUrl = "https://autoria-form.herokuapp.com";

// Utilizando jQuery
function requisitarComJQuery() {
    $.getJSON(apiUrl + "/blog", (data) => console.log(data));
}

requisitarComJQuery()

Versão 5.3 - Todos os Direitos reservados