updates api routes name to be all lowercase

This commit is contained in:
Seyi Adebajo 2018-02-21 17:33:42 -08:00
parent c31b0aef53
commit 34a67bdde6
5 changed files with 11 additions and 7 deletions

View File

@ -268,7 +268,7 @@ POST /api/v1/tracking
GET /api/v2/list/platforms controllers.api.v2.Dataset.getDataPlatforms
GET /api/v2/list/complianceDataTypes controllers.api.v2.Dataset.getComplianceDataTypes
GET /api/v2/list/compliance-data-types controllers.api.v2.Dataset.getComplianceDataTypes
GET /api/v2/platforms/:platform/prefix/:prefix controllers.api.v2.Dataset.listSegments(platform: String, prefix: String)
@ -302,7 +302,7 @@ GET /api/v2/datasets/:urn/compliance
POST /api/v2/datasets/:urn/compliance controllers.api.v2.Dataset.updateDatasetCompliance(urn: String)
GET /api/v2/datasets/:urn/complianceSuggestion controllers.api.v2.Dataset.getDatasetSuggestedCompliance(urn: String)
GET /api/v2/datasets/:urn/compliance/suggestion controllers.api.v2.Dataset.getDatasetSuggestedCompliance(urn: String)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)

View File

@ -36,7 +36,7 @@ const datasetComplianceSuggestionsUrlById = (id: number): string => `${datasetCo
* @param {string} urn
* @return {string}
*/
const datasetComplianceSuggestionUrlByUrn = (urn: string): string => `${datasetUrlByUrn(urn)}/complianceSuggestion`;
const datasetComplianceSuggestionUrlByUrn = (urn: string): string => `${datasetUrlByUrn(urn)}/compliance/suggestion`;
/**
* Determines if the client app should 'new' a compliance policy

View File

@ -6,7 +6,7 @@ import { getListUrlRoot } from 'wherehows-web/utils/api/list/shared';
* Defines the url endpoint for the list of dataset compliance data types and attributes
* @type {string}
*/
const complianceDataTypesUrl = `${getListUrlRoot('v2')}/complianceDataTypes`;
const complianceDataTypesUrl = `${getListUrlRoot('v2')}/compliance-data-types`;
/**
* Requests the list of compliance data types and the related attributes

View File

@ -42,7 +42,7 @@ export default function(this: IMirageServer) {
this.get('/datasets/:dataset_id/owners', getDatasetOwners);
this.get('/list/complianceDataTypes', getComplianceDataTypes);
this.get('/list/compliance-data-types', getComplianceDataTypes);
this.get('/list/platforms', getDatasetPlatforms);

View File

@ -27,8 +27,12 @@ test('it renders', async function(assert) {
{ 'Content-Type': 'application/json' },
JSON.stringify({})
]);
this.server.respondWith(/.*\/complianceDataTypes/, [200, { 'Content-Type': 'application/json' }, JSON.stringify([])]);
this.server.respondWith(/.*\/complianceSuggestion/, [
this.server.respondWith(/.*\/compliance-data-types/, [
200,
{ 'Content-Type': 'application/json' },
JSON.stringify([])
]);
this.server.respondWith(/.*\/compliance\/suggestion/, [
200,
{ 'Content-Type': 'application/json' },
JSON.stringify({})