Posts

Showing posts with the label WebTech

REST API

Image
What is a REST API? REST or RESTful API design (Representational State Transfer) is designed to take advantage of existing protocols. While REST can be used over nearly any protocol, it usually takes advantage of HTTP when used for Web APIs. This means that developers do not need to install libraries or additional software in order to take advantage of a REST API design. REST API Design was defined by Dr. Roy Fielding in his 2000 doctorate dissertation. It is notable for its incredible layer of flexibility. Since data is not tied to methods and resources, REST has the ability to handle multiple types of calls, return different data formats and even change structurally with the correct implementation of hypermedia. This freedom and flexibility inherent in REST API design allow you to build an API that meets your needs while also meeting the needs of very diverse customers. Unlike SOAP , REST is not constraine...

OWASP Top 10 vulnerabilities

Image
OWASP stands for the Open Web Application Security Project , an online community that produces articles, methodologies, documentation, tools, and technologies in the field of web application security. OWASP Top 10 is the list of the 10 most common application vulnerabilities. It also shows their risks, impacts, and countermeasures. Updated every three to four years, the latest OWASP vulnerabilities list was released in 2018. Let’s dive into it! The Top 10 OWASP vulnerabilities in 2020 are: Injection . Injection flaws, such as SQL, NoSQL, OS, and LDAP injection, occur when untrusted data is sent to an interpreter as part of a command or query. The attacker’s hostile data can trick the interpreter into executing unintended commands or accessing data without proper authorization. Broken Authentication . Application functions related to authentication and session management are often implemented incorrectly, allowing attackers to compromise passwords, keys, or session tokens, ...

XML v/s JSON

Image
Both JSON and XML can be used to receive data from a web server. JSON is used to store information in an organized, and easy-to-access manner. Its full form is JavaScript Object Notation. It offers a human-readable collection of data which can be accessed logically. XML is a markup language which is designed to store data. It's popularly used or transfer of data. It is case sensitive. XML offers you to define markup elements and generate customized markup language. The basic unit in the XML is known as an element. Extension of XML file is .xml KEY DIFFERENCE JSON object has a type whereas XML data is typeless. JSON does not provide namespace support while XML provides namespaces support. JSON has no display capabilities whereas XML offers the capability to display data. JSON is less secured whereas XML is more secure compared to JSON. JSON supports only UTF-8 encoding whereas XML supports various encoding formats. JSON Code vs XML Code Let's see a sample JSON Code { ...

The Client-Side Of The Web: HTML-CSS-JS

Image
HTML, CSS and JS are the parts of all websites that users directly interact with. These are the Client Side of Web Technology HTML(HyperText Markup Language) is like a skeleton of the website. It creates the structure. Like which division of the website should be placed where. It uses tags to define the structure.Every other language used to develop website is linked inside HTML. CSS(Cascading Style Sheets) is like the beauty parlor of HTML. It uses it's defined properties and it's values to give styling to the selected tags of HTML Eg. SelectedTag{property: value} div{height: 200px} Javascript is like the nature of the website. How you want that website to work could be defined by javascript. For example on taking the mouse over the button I want a drop down list to appear from it or I want to change the background color of website on clicking that button etc. Note that: HTML and CSS are NOT programming languages, they are structure-based markup languages, there is...