Mindmap
Part 1: IA3

Mind map: data interface
Inhalt der Mindmap
Part 1: IA3
Data Interface
- Sample Data
- {"employees":[ { "firstName":"John", "lastName":"Doe" }, { "firstName":"Anna", "lastName":"Smith" }, { "firstName":"Peter", "lastName":"Jones" } ]}
- HTML
- To fetch the joke: {{ data }}
- Sample Data
Data Structures
- Keys
- A key is always enclosed in quotation marks and is usually the 'variable'.
- "Name":
- A key is always enclosed in quotation marks and is usually the 'variable'.
- Values
- Are values of the 'variables' / keys such as numbers, boolean, etc.
- "Tohru"
- Key-Value pair
- "Name": "Tohru"
- Key-Value pair
- "Tohru"
- Are values of the 'variables' / keys such as numbers, boolean, etc.
- Array
- In a JSON setting, an array is a property which can hold values to the corresponding types: strings, arrays, boolean, numbers, objects and null.
- {"name" : "Tohru", "age" : 18, "subjects" : ["English", "Math", "Science"]}
- In a JSON setting, an array is a property which can hold values to the corresponding types: strings, arrays, boolean, numbers, objects and null.
- Keys
Digital Methods
- Protocols
- HTTP
- HTTP is the process of transferring information between clients and web servers.
- HTTPS
- Similar to HTTP, it is the process of transferring information between client and web server but is encrypted.
- FTP
- Transfer files between devices over a network, often requiring credentials to bypass its encrypted nature.
- SMTP
- Only supports text, not attachments.
- UDP
- Functions with TCP to send datagrams over a network and suited for real-time or high performance task.
- TCP
- Transfers packets of data from the source to the destination. This process requires the packet to separate into different parts and reassembles at the destination.
- DNS
- Turns IP Addresses to names.
- HTTP
- REST Principles
- Uniform Interface
- A 'set' / standard way a client and server interact.
- e.g: HTTP GET, POST Request.
- A 'set' / standard way a client and server interact.
- Client-Server
- Client: A person requesting information. | Server: Entity that holds information.
- e.g: The client could be a user and the server could be the Youtube servers when searching for a video.
- Client: A person requesting information. | Server: Entity that holds information.
- Stateless
- Servers will not hold any records of any information about a HTTP request the client makes during a client-server process.
- e.g: Incognito browsers on any web browser does not save information about the last user query.
- Servers will not hold any records of any information about a HTTP request the client makes during a client-server process.
- Cacheable
- The ability of a server to store copies of data in several places that are frequently accessed on a request-response direction.
- Layered System
- A hierarchical layer where each layer holds information for itself such as security information.
- e.g: Server A has the information, Server B verifies that information.
- A hierarchical layer where each layer holds information for itself such as security information.
- Uniform Interface
- JSON + XML
- Both JSON and XML transfer and store data.
- Use human-readable text.
- Can be requested through an XHR.
- XHR: XMLHTTPRequest.
- Both XML and JSON use a layered system.
- Protocols
Data Specifications
- Data Types
- Number
- JSON values that are numbers must be integers.
- { "length": 180 }
- Max data type length: 255
- { "length": 180 }
- JSON values that are numbers must be integers.
- String
- Used to represent text which can contain a variety of characters such as numbers and letters
- { "name": "Tohru" }
- Max data length: 255
- { "name": "Tohru" }
- Used to represent text which can contain a variety of characters such as numbers and letters
- Boolean
- True/False (statements or values)
- { "red_light" : true }
- True/False (statements or values)
- Array
- An array is a list of values
- { "shades" : ["white", "black", "grey"]}
- Max data length: 255
- { "shades" : ["white", "black", "grey"]}
- An array is a list of values
- Object
- Objects are a set of name-value pairs in an array.
- "Customer" : {"name" : "Tohru", "age" : "18" }
- Max data length: 255
- "Customer" : {"name" : "Tohru", "age" : "18" }
- Objects are a set of name-value pairs in an array.
- Null
- Although null is more of a property, it means that values in JSON can be null.
- Number
- Constraints
- Data has to be in an array.
- Value constraints
- Validation
- Formatting
- Ensures fields are in the 'correct format'.
- Formatting
- Data Types
Informationen
- Beschreibung
- Mindmap am Part 1: IA3, erstellt von Matthew C am 13/05/2024.
- Erstellt von
- Matthew C
- Aufrufe
- 48
- Bewertung
Mehr zu Data Exchange and Sharing