REST

Definition

REST (Representational State Transfer) is an architectural style for designing networked applications. It relies on stateless, client-server communication, typically over HTTP, and uses standard HTTP methods like GET, POST, PUT, and DELETE. RESTful services are designed to be scalable, cacheable, and to provide a uniform interface, allowing clients to interact with resources using URLs.

Secure Settings Example

# Example of a secure REST API configuration using HTTPS and authentication
server:
  port: 443
  ssl:
    enabled: true
    key-store: classpath:keystore.jks
    key-store-password: changeit
    key-password: changeit

security:
  basic:
    enabled: false
  oauth2:
    resource:
      user-info-uri: https://auth.example.com/userinfo
      token-info-uri: https://auth.example.com/tokeninfo

Insecure Settings Example

# Example of an insecure REST API configuration using HTTP and no authentication
server:
  port: 80
  ssl:
    enabled: false

security:
  basic:
    enabled: false
  oauth2:
    resource:
      user-info-uri: http://auth.example.com/userinfo
      token-info-uri: http://auth.example.com/tokeninfo