Help shape GoConqr. What should we add next?

Mind map

Part 1: IA3

Matthew C English

Mind map on data interface: data structures, digital methods, data specifications and validation

Mind map: data interface

Map content

Part 1: IA3

  1. Data Interface

    • Sample Data
      • {"employees":[ { "firstName":"John", "lastName":"Doe" }, { "firstName":"Anna", "lastName":"Smith" }, { "firstName":"Peter", "lastName":"Jones" } ]}
    • HTML
      • To fetch the joke: {{ data }}
  2. Data Structures

    • Keys
      • A key is always enclosed in quotation marks and is usually the 'variable'.
        • "Name":
    • Values
      • Are values of the 'variables' / keys such as numbers, boolean, etc.
        • "Tohru"
          • Key-Value pair
            • "Name": "Tohru"
    • 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"]}
  3. 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.
    • REST Principles
      • Uniform Interface
        • A 'set' / standard way a client and server interact.
          • e.g: HTTP GET, POST Request.
      • 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.
      • 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.
      • 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.
    • 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.
  4. Data Specifications

    • Data Types
      • Number
        • JSON values that are numbers must be integers.
          • { "length": 180 }
            • Max data type length: 255
      • String
        • Used to represent text which can contain a variety of characters such as numbers and letters
          • { "name": "Tohru" }
            • Max data length: 255
      • Boolean
        • True/False (statements or values)
          • { "red_light" : true }
      • Array
        • An array is a list of values
          • { "shades" : ["white", "black", "grey"]}
            • Max data length: 255
      • Object
        • Objects are a set of name-value pairs in an array.
          • "Customer" : {"name" : "Tohru", "age" : "18" }
            • Max data length: 255
      • Null
        • Although null is more of a property, it means that values in JSON can be null.
    • Constraints
      • Data has to be in an array.
      • Value constraints
    • Validation
      • Formatting
        • Ensures fields are in the 'correct format'.

Information

Description
Mind Map on Part 1: IA3, created by Matthew C on 13/05/2024.
Created by
Matthew C
Views
48
Rating

More on Data Exchange and Sharing

Feedback

What is it about?

What should we add next?