Fix id params not being named correctly
This commit is contained in:
parent
588b87fb96
commit
e7c1c98c6a
25 changed files with 74 additions and 74 deletions
|
|
@ -4,9 +4,9 @@ import LabelTask from "../models/labelTask";
|
|||
export default class LabelTaskService extends AbstractService {
|
||||
constructor() {
|
||||
super({
|
||||
create: '/tasks/{taskID}/labels',
|
||||
getAll: '/tasks/{taskID}/labels',
|
||||
delete: '/tasks/{taskID}/labels/{labelId}',
|
||||
create: '/tasks/{taskId}/labels',
|
||||
getAll: '/tasks/{taskId}/labels',
|
||||
delete: '/tasks/{taskId}/labels/{labelId}',
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {formatISO} from 'date-fns'
|
|||
export default class ListService extends AbstractService {
|
||||
constructor() {
|
||||
super({
|
||||
create: '/namespaces/{namespaceID}/lists',
|
||||
create: '/namespaces/{namespaceId}/lists',
|
||||
get: '/lists/{id}',
|
||||
update: '/lists/{id}',
|
||||
delete: '/lists/{id}',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export default class TeamMemberService extends AbstractService {
|
|||
}
|
||||
|
||||
beforeCreate(model) {
|
||||
model.userId = model.id // The api wants to get the user id as user_ID
|
||||
model.userId = model.id // The api wants to get the user id as user_Id
|
||||
model.admin = model.admin === null ? false : model.admin
|
||||
return model
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import {formatISO} from 'date-fns'
|
|||
export default class TeamNamespaceService extends AbstractService {
|
||||
constructor() {
|
||||
super({
|
||||
create: '/namespaces/{namespaceID}/teams',
|
||||
getAll: '/namespaces/{namespaceID}/teams',
|
||||
update: '/namespaces/{namespaceID}/teams/{teamId}',
|
||||
delete: '/namespaces/{namespaceID}/teams/{teamId}',
|
||||
create: '/namespaces/{namespaceId}/teams',
|
||||
getAll: '/namespaces/{namespaceId}/teams',
|
||||
update: '/namespaces/{namespaceId}/teams/{teamId}',
|
||||
delete: '/namespaces/{namespaceId}/teams/{teamId}',
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import {formatISO} from 'date-fns'
|
|||
export default class UserNamespaceService extends AbstractService {
|
||||
constructor() {
|
||||
super({
|
||||
create: '/namespaces/{namespaceID}/users',
|
||||
getAll: '/namespaces/{namespaceID}/users',
|
||||
update: '/namespaces/{namespaceID}/users/{userId}',
|
||||
delete: '/namespaces/{namespaceID}/users/{userId}',
|
||||
create: '/namespaces/{namespaceId}/users',
|
||||
getAll: '/namespaces/{namespaceId}/users',
|
||||
update: '/namespaces/{namespaceId}/users/{userId}',
|
||||
delete: '/namespaces/{namespaceId}/users/{userId}',
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue