4 Followers
·
Follow

URI (uniform resource locator) is the language to identify a resource in REST system. These URIs if not controlled and structured correctly can grow quickly and can become a housekeeping issue.

Mapping path to a function

There are many libraries out there, which maps a function to the path. REST is designed to use URI as the resource identifier, as the name suggests. According to REST, each URI should represent a unique resource. This resource should be considered an object.

Image for post
Image for post

Using path as verbs

Developers often name the URI (in systems they are allowed to) according to the function being performed. For, example /api/users/getUserData is created inside the resource and mapped to a function that is supposed to retrieve user data. …

About

metamug

REST API server for the full stack developers. Build APIs with SQL https://metamug.com/download

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store