This high-level diagram shows how you might organize your code: you’d have a database (or multiple databases), and your REST API would sit on top of that. Then other programs use your REST API to interact with your data. ![]() Your REST API is server code whose job it is to provide access to your data and to enforce rules like who can see what. This tutorial introduces the idea of creating a REST API, which is a way of organizing our code so we can access our data from multiple applications. But what if we want to support different kinds of programs instead of just a web app? What if we want to create a desktop application or an Android app? How do we provide access to our data for those programs without writing everything from scratch each time? We know how to get user input, how to access a database, and how to handle user logins. ![]() Now we know how to create a web app using servlet classes. Creating a REST API Creating a REST API tutorial java server rest ajax json
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |