Skip to content

Instantly share code, notes, and snippets.

@AnnMerlyn
AnnMerlyn / gist:e6d85d31b75303979a2e6b4a9de72f43
Created October 17, 2020 18:10 — forked from xcodeit/gist:3726868
General principles for good URI design
General principles for good URI design:
Don't use query parameters to alter state
Don't use mixed-case paths if you can help it; lowercase is best
Don't use implementation-specific extensions in your URIs (.php, .py, .pl, etc.)
Don't fall into RPC with your URIs
Do limit your URI space as much as possible
Do keep path segments short
Do prefer either /resource or /resource/; create 301 redirects from the one you don't use
Do use query parameters for sub-selection of a resource; i.e. pagination, search queries
@AnnMerlyn
AnnMerlyn / JSON with JS.md
Created January 10, 2018 10:27
Access local JSON data with Javascript

What

An updated guide/collection of guides on how to access JSON data with JavaScript

Original Question on Stack Exchange.


Example 1

For reading the external Local JSON file (data.json) using java script