Skip to content

Identicum/oauth-demoapi-spring

Repository files navigation

oauth-demoapi-spring

Spring OAuth demo API, acting as OAuth2 Resource Server.

OpenAPI definition

openapi: 3.0.1
info:
  title: Products API
  description: Products API (secured using OAuth)
  version: 1.0.0
servers:
- url: http://demoapi:8081/api/v1
tags:
- name: product
  description: Operations about products
paths:
  /products:
    get:
      tags:
      - product
      summary: Get products
      security:
        - bearerOAuth: [api.identicum.com/products:read]
      responses:
        401:
          $ref: '#/components/responses/UnauthorizedError'
        200:
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Product'
components:
  responses:
    UnauthorizedError:
      description: Access token is missing or invalid
  schemas:
    Product:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
      xml:
        name: Product
  securitySchemes:
    bearerOAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT Access token

About

OAuth resource server demo api using Spring Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •