Skip to content

Organization Service

Wuyi Chen edited this page Jun 29, 2019 · 10 revisions

Description

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

Technique

  • Spring Data JPA
  • Netflix Feign
  • Netflix Eureka
  • OAuth2

Available API Calls

OS1: Get an organization record by organizatiion ID.

KEY VALUE
Authorization Bearer {access_token}
  • Body
  • Notes:
    • Because of the organization service is protected and only be accessible with the valid access token, you need to add a valid access token to the header of this call.

OS2: Update an organization record by organization ID.

KEY VALUE
Authorization Bearer {access_token}
Content-Type application/json
  • Body
{
   "id": "e254f8c-c442-4ebe-a82a-e2fc1d1ff78a",
   "name": "customer-crm-co",
   "contactName": "Mark Balster",
   "contactEmail": "mark.balster@customercrmco.com",
   "contactPhone": "832-555-2222"
}
  • Notes:
    • Because of the organization service is protected and only be accessible with the valid access token, you need to add a valid access token to the header of this call.
    • After the organization service received this request, it will insert a new message into Kafka message queue to notify the licensing service that there is an update for the organization record.

OS3: Add a new organization record.

KEY VALUE
Authorization Bearer {access_token}
Content-Type application/json
  • Body
{
   "id": "e254f8c-c442-4ebe-a82a-e2fc1d1ff78a",
   "name": "customer-crm-co",
   "contactName": "Mark Balster",
   "contactEmail": "mark.balster@customercrmco.com",
   "contactPhone": "832-555-2222"
}
  • Notes:
    • Because of the organization service is protected and only be accessible with the valid access token, you need to add a valid access token to the header of this call.
    • After the organization service received this request, it will insert a new message into Kafka message queue to notify the licensing service that there is an update for the organization record.

OS4: Delete an organization record by organization ID.

KEY VALUE
Authorization Bearer {access_token}
  • Body
  • Notes:
    • Because of the organization service is protected and only be accessible with the valid access token, you need to add a valid access token to the header of this call.
    • After the organization service received this request, it will insert a new message into Kafka message queue to notify the licensing service that there is an update for the organization record.

Database Table(s)

  • organizations
Clone this wiki locally