Skip to content

Commit

Permalink
Rename api path /details/ to /detail/ for consistency CSCDP#9
Browse files Browse the repository at this point in the history
  • Loading branch information
kws committed Feb 13, 2020
1 parent 783b939 commit 3aa2364
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions client/docs/api/PersonApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getPersonById**](PersonApi.md#getPersonById) | **GET** /api/person/details/{personId} | Find person by ID
[**getPersonById**](PersonApi.md#getPersonById) | **GET** /api/person/detail/{personId} | Find person by ID
[**getPersonRelated**](PersonApi.md#getPersonRelated) | **GET** /api/person/related/{personId}/ | Get related individuals
[**getPersonRelatedSupported**](PersonApi.md#getPersonRelatedSupported) | **HEAD** /api/person/related/{personId}/ | Is related person supported
[**getPersonServiceByTypeAndId**](PersonApi.md#getPersonServiceByTypeAndId) | **GET** /api/person/details/{personId}/service/{serviceType} | Find person by ID
[**getPersonServicesById**](PersonApi.md#getPersonServicesById) | **GET** /api/person/details/{personId}/service | Get a summary of the services a person has interacted with
[**getPersonServiceByTypeAndId**](PersonApi.md#getPersonServiceByTypeAndId) | **GET** /api/person/detail/{personId}/service/{serviceType} | Find person by ID
[**getPersonServicesById**](PersonApi.md#getPersonServicesById) | **GET** /api/person/detail/{personId}/service | Get a summary of the services a person has interacted with
[**searchPerson**](PersonApi.md#searchPerson) | **POST** /api/search/person | Search for a person
[**searchPersonSupported**](PersonApi.md#searchPersonSupported) | **HEAD** /api/search/person | Is person search supported

Expand Down
6 changes: 3 additions & 3 deletions client/src/api/api/PersonApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class PersonApi {
let returnType = Person;

return this.apiClient.callApi(
'/api/person/details/{personId}', 'GET',
'/api/person/detail/{personId}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
Expand Down Expand Up @@ -192,7 +192,7 @@ export default class PersonApi {
let returnType = ServiceDetail;

return this.apiClient.callApi(
'/api/person/details/{personId}/service/{serviceType}', 'GET',
'/api/person/detail/{personId}/service/{serviceType}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
Expand Down Expand Up @@ -234,7 +234,7 @@ export default class PersonApi {
let returnType = [ServiceSummary];

return this.apiClient.callApi(
'/api/person/details/{personId}/service', 'GET',
'/api/person/detail/{personId}/service', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
);
Expand Down
6 changes: 3 additions & 3 deletions schema/family-context-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ paths:
description: Person search is not supported by this application


/api/person/details/{personId}:
/api/person/detail/{personId}:
get:
summary: Find person by ID
description: Returns a single person
Expand All @@ -137,7 +137,7 @@ paths:
description: Person not found
content: {}

/api/person/details/{personId}/service:
/api/person/detail/{personId}/service:
get:
summary: Get a summary of the services a person has interacted with
operationId: getPersonServicesById
Expand All @@ -163,7 +163,7 @@ paths:
description: Person not found
content: {}

/api/person/details/{personId}/service/{serviceType}:
/api/person/detail/{personId}/service/{serviceType}:
get:
summary: Find person by ID
description: Returns a single person
Expand Down
6 changes: 3 additions & 3 deletions server/swagger_server/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ paths:
"501":
description: Person search is not supported by this application
x-openapi-router-controller: swagger_server.controllers.person_controller
/api/person/details/{personId}:
/api/person/detail/{personId}:
get:
tags:
- person
Expand All @@ -121,7 +121,7 @@ paths:
description: Person not found
content: {}
x-openapi-router-controller: swagger_server.controllers.person_controller
/api/person/details/{personId}/service:
/api/person/detail/{personId}/service:
get:
tags:
- person
Expand Down Expand Up @@ -150,7 +150,7 @@ paths:
description: Person not found
content: {}
x-openapi-router-controller: swagger_server.controllers.person_controller
/api/person/details/{personId}/service/{serviceType}:
/api/person/detail/{personId}/service/{serviceType}:
get:
tags:
- person
Expand Down
6 changes: 3 additions & 3 deletions server/swagger_server/test/test_person_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_get_person_by_id(self):
Find person by ID
"""
response = self.client.open(
'/api/person/details/{personId}'.format(person_id='person_id_example'),
'/api/person/detail/{personId}'.format(person_id='person_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_get_person_service_by_type_and_id(self):
Find person by ID
"""
response = self.client.open(
'/api/person/details/{personId}/service/{serviceType}'.format(person_id='person_id_example', service_type='service_type_example'),
'/api/person/detail/{personId}/service/{serviceType}'.format(person_id='person_id_example', service_type='service_type_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
Expand All @@ -66,7 +66,7 @@ def test_get_person_services_by_id(self):
Get a summary of the services a person has interacted with
"""
response = self.client.open(
'/api/person/details/{personId}/service'.format(person_id='person_id_example'),
'/api/person/detail/{personId}/service'.format(person_id='person_id_example'),
method='GET')
self.assert200(response,
'Response body is : ' + response.data.decode('utf-8'))
Expand Down

0 comments on commit 3aa2364

Please sign in to comment.