Skip to content

Licensing Service

Wuyi Chen edited this page May 10, 2019 · 13 revisions

Description

Manage (query, add, update, delete) license records.

Technique

  • Spring Data JPA
  • Netflix Feign
  • Netflix Eureka
  • Netflix Hystrix

Available API Calls

Method URL Headers Body Description
GET http://localhost:8080/v1/organizations/{orgId}/licenses/ Query a list of licenses by the organization ID.
GET http://localhost:8080/v1/organizations/{orgId}/licenses/{licId} Query a license by the organization ID and the license ID.
GET http://localhost:8080/v1/organizations/{orgId}/licenses/{licId}/{cliTyp} Query a license by the organization ID, the license ID and the client type (client type can be "feign", "rest", "discovery").
PUT http://localhost:8080/v1/organizations/{orgId}/licenses/{licId} "Content-Type"="application/json" (License in JSON) Update a license by the license ID.
POST http://localhost:8080/v1/organizations/{orgId}/licenses/ "Content-Type"="application/json" (License in JSON) Add a new license.
DELETE http://localhost:8080/v1/organizations/{orgId}/licenses/{licId} Delete a license by the license ID.

Database Table(s)

  • licenses
Clone this wiki locally