-
- Downloads
Tags => Code integration
interface TagSubmit { | interface TagProposal { | ||
|
|||
name: string; | name: string; | ||
type: 'Language' | 'Framework' | 'Theme' | 'UserDefined'; | type: 'Language' | 'Framework' | 'Theme' | 'UserDefined'; | ||
state: 'PendingApproval' | 'Declined' | 'Approved'; | state: 'PendingApproval' | 'Declined' | 'Approved'; | ||
details: string; | |||
} | } | ||
export default TagSubmit; | |||
export default TagProposal; |
... | @@ -11,11 +11,11 @@ enum ApiRoute { | ... | @@ -11,11 +11,11 @@ enum ApiRoute { |
ASSIGNMENT_CORRECTION_UPDATE_DELETE = '/assignments/{{assignmentNameOrUrl}}/corrections/{{exerciseIdOrUrl}}', | ASSIGNMENT_CORRECTION_UPDATE_DELETE = '/assignments/{{assignmentNameOrUrl}}/corrections/{{exerciseIdOrUrl}}', | ||
EXERCISE_CREATE = '/assignments/{{assignmentNameOrUrl}}/exercises', | EXERCISE_CREATE = '/assignments/{{assignmentNameOrUrl}}/exercises', | ||
EXERCISE_ASSIGNMENT = '/exercises/{{exerciseIdOrUrl}}/assignment', | EXERCISE_ASSIGNMENT = '/exercises/{{exerciseIdOrUrl}}/assignment', | ||
EXERCISE_RESULTS = '/exercises/{{exerciseIdOrUrl}}/results' | EXERCISE_RESULTS = '/exercises/{{exerciseIdOrUrl}}/results', | ||
ADD_TAG = '/tags', | TAG_CREATE = '/tags', | ||
|
|||
DELETE_TAG = '/tags/{{tageName}}', | TAG_DELETE = '/tags/{{tagName}}', | ||
PROPOSE_TAG = '/tags/proposals/{{tagState}}', | TAG_PROPOSAL_GET_CREATE = '/tags/proposals', | ||
//ANSWER_TAG_PROPOSAL = '/tags/proposals/{{tagProposalName}}' | TAG_PROPOSAL_UPDATE = '/tags/proposals/{{tagName}}', | ||
} | } | ||
... | ... |