简体   繁体   中英

Spring boot API's

I'm making a challenge that I need to do a credit analysis and use some architectural concepts, which I was in doubt about "API's". It needs to be developed in spring boot which I already did. The conditions of the challenge are:

  1. Frontend / Backend.
  2. Api concept backend containing swagger documentation of endpoints.
  3. API for registration and consultation of proposals.
  4. Credit engine API that will review the proposal and make the credit limit decision.

I'm in doubt about steps 3 and 4 where API's are required. What does he mean by that? Do I need to create new Spring boot projects that communicate with each other? What is the best way to dealing with API's?

Thank you!

Your HTML form (eg registering proposal) will call API with all the form values as key=value pair, your API (Spring Controller) will accept those key=value and process it, apply your business logic, store to database, etc. You can go thru spring boot guides to get more idea, one of such guide for submitting form:

  1. https://spring.io/guides/gs/handling-form-submission/
  2. https://hellokoding.com/handling-form-submission-example-with-java-spring-boot-and-freemarker/
  3. https://medium.com/@grokwich/spring-boot-thymeleaf-html-form-handling-762ef0d51327

Also you can go thru spring boot pet project , a sample showcase app developed with most of spring mvc capabilities.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM