-
Notifications
You must be signed in to change notification settings - Fork 60
Organization Service
Wuyi Chen edited this page Jun 29, 2019
·
10 revisions
Manage (query, add, update, delete) organization records.
- Spring Data JPA
- Netflix Feign
- Netflix Eureka
- OAuth2
- URL: http://localhost:8060/v1/organizations/{organizationId}
- Method: GET
-
Parameters:
- organizationId: The organization ID for looking up.
- Headers
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.
- URL: http://localhost:8060/v1/organizations/{organizationId}
- Method: PUT
-
Parameters:
- organizationId: The organization ID for looking up.
- Headers
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": "[email protected]",
"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.
- URL: http://localhost:8060/v1/organizations/{organizationId}
- Method: POST
- Parameters
- Headers
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": "[email protected]",
"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.
- URL: http://localhost:8060/v1/organizations/{organizationId}
- Method: DELETE
-
Parameters
- organizationId: The organization ID for identifying the record needs to be deleted.
- Headers
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.
- organizations
- Overview
- Getting Started
-
Technical Essentials
- Autowired
- SpringData JPA
- Configuration File Auto-loading
- Configuration Encryption
- Service Discovery with Eureka
- Resiliency Patterns with Hystrix
- Configure Hystrix
- Service Gateway with Zuul
- Zuul Filters
- Protect Service with Spring Security and OAuth2
- Use JWT as Access Token
- Store Clients and Users' Credentials to DB
- Integrate with Message Queue (Kafka)
- Integrate with Redis
- Tune Logging
- Log Aggregation
- Send Trace to Zipkin
- Build Runnable Jar
- Core Application Logic
- Components