![]() The Loopback CLI is an interactive wizard. Once you are done installing, go ahead and run the loopback command: lb Go ahead and install Loopback: npm install -g loopback-cli We'll ensure that the other HTTP verbs, POST, PUT, and DELETE will be active for these endpoints when building the API. In the analysis above, you'll observe that all the calls for the endpoints are GET requests. GET - /films / returns the details of a specific film.GET - /films returns a list of all the episodes. ![]() This resource is about the episodes of the Star Wars film.GET - /species / returns the details of a specific specie.GET - /species returns a list of all the species.This resource is about the type of characters in the Star Wars Universe.GET - /vehicles / returns the details of vehicle.GET - /vehicles returns a list of all the vehicles.This resource is about the transport crafts that do not have hyperdrive capability.GET - /starships / returns the details of a specific starship.GET - /starships returns a list of all the starships.This resource is about the transport crafts that have hyperdrive capability in the Star Wars Universe.GET - /planets / returns the details of a specific character.GET - /people returns a list of all the characters.This resource deals with characters in the Star Wars Universe.GET - /planets / returns the details of a specific planet.GET - /planets returns a list of all the planets.This resource is about the planetary bodies in the Star Wars Universe.There are six endpoints for the Star Wars API: We will explore the API endpoints for SWAPI(Star Wars API). Consider a case where you are assigned the task of designing an API for a new interesting HBO show, e.g Game of Thrones, that has caught the attention of Google & Facebook. The objective of building the API clone is to learn how to craft APIs quickly with Loopback. Rather than crafting an entirely different API, we'll build a clone of the Star Wars API. In this tutorial, we'll build a RESTful API for Star Wars. Providing SDKs for iOS, Android, and AngularJS to easily create client apps.Allowing a developer to create dynamic models in the absence of a schema.Allowing a developer create models based on a particular schema. ![]() Simply put, Loopback allows you to create REST APIs in minutes. It also provides several add-on components for file management, 3rd-party login, OAuth2, Storage providers e.t.c. Loopback runs on-premises or in the cloud. "Loopback is a highly extensible open-source Node.js framework that can be used to build dynamic end-to-end REST APIs"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |