Thursday, October 4, 2018

Design the REST API according to standards


Please find the following information , which helps to design the REST API according to standards.


1. Use nouns to represent resources

Consistency is the key

1. Use forward slash (/) to indicate a hierarchical relationships

2. Do not use trailing forward slash (/) in URIs

3. Use hyphens (-) to improve the readability of URIs

4. Do not use underscores ( _ )

5. Use lowercase letters in URIs

6. Do not use file extenstions

Never use CRUD function names in URIs

Use query component to filter URI collection




No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...