Web dev Flashcards
Can you explain how HTTPS works and the importance of using it on websites?
encrypts data passed between the browser and server using an encryption protocol called Transport Layer Security
HTTPS is important to attackers can’t steal data
What does HTTPS stand for
Hyper Text Transfer Protocol Secure
How to create a REST api
Angular (client) - component makes a REST call (ie., post) which is passed a URL that is generated and includes the end point from the java code
HTTP requests shares DTOs between the UI and Controller (Java)
Controller (Java) defineds the rest endpoints and uses the Spring @Mapper to map the DTO a DAO. It uses annotations like @PostMapping(value =.., consumes={..}, produces={..}) and passes the new DAO to a method defined in the service
Service (Java) this receives the data in a form it is able to pass to the SQL query defined in json file (ie., write to db)
Database (DB2) permenantly stores the data