REST development

Introduction

REST development best practices

Best practices

  • Use nouns instead of verbs in endpoints (eg: /v1/curriculums)

  • Name collections with plural nouns (eg: applications)

  • Use logical nesting on endpoints to show relationships (eg: applications/learning-objects)

  • Use filtering (eg: @RequestParam)

  • Use sorting and pagination (eg: org.springframework.data.domain.Pageable)

  • Be clear with versioning