Web dev Flashcards

1
Q

Can you explain how HTTPS works and the importance of using it on websites?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does HTTPS stand for

A

Hyper Text Transfer Protocol Secure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to create a REST api

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly