Skip to content

Instantly share code, notes, and snippets.

View OluwadaraDaily's full-sized avatar

Oloye Oluwadara OluwadaraDaily

View GitHub Profile
@OluwadaraDaily
OluwadaraDaily / statusCodes.txt
Created June 2, 2023 08:10
A display of status codes
1XX [Informational]
100 - Continue
2XX [Success]
200 : OK
201: Created
204: No Content
3XX [Redirection]
301 : Moved Permanently
@OluwadaraDaily
OluwadaraDaily / json-body.json
Created June 2, 2023 07:50
An example of a JSON body data for a REST API request
{
"id": 8,
"username": "Oluwadara",
"password": "[SOME_FANCY_ENCRYPTED_PASSWORD]",
"is_deleted": false
}
@OluwadaraDaily
OluwadaraDaily / headers.js
Last active June 2, 2023 07:51
An example of headers in Javascript
const headers = {
Authorization: [YOUR_TOKEN_OR_API_KEY],
Content-Type: ["application/json", "text/plain", "multipart/form-data", ...],
Cache-Control: ["no-cache", "max-age", "no-store", ...],
...
}