Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving old AJAX routes to Api/App namespace #3619

Open
wants to merge 47 commits into
base: develop
Choose a base branch
from

Conversation

mauretto78
Copy link
Contributor

@mauretto78 mauretto78 commented Oct 9, 2024

ASANA https://app.asana.com/0/1134617950425092/1208330119017527

Routes involved

old route new route action
?action=fetchChangeRates /api/app/fetch-change-rates Fetches change rates from Translated
?action=outsourceTo /api/app/outsource-to Get an outsource quotation from Translated
?action=getVolumeAnalysis /api/app/get-volume-analysis Get volume analysis of a project
?action=getProjects /api/app/get-projects Get user's projects
?action=deleteContribution /api/app/delete-contribution Delete a contribution
?action=comment /api/app/comment/create Create a comment
?action=comment /api/app/comment/delete Delete a comment
?action=comment /api/app/comment/get-range Get segments comments
?action=comment /api/app/comment/resolve Resolve a comment
?action=copyAllSource2Target /api/app/copy-all-source-to-target Copy all source to target
?action=getWarning /api/app/get-local-warning Get local warning (segment warnings)
?action=getWarning /api/app/get-global-warning Get global warning (job warnings)
?action=splitJob /api/app/split-job-apply Apply a job split
?action=splitJob /api/app/split-job-check Check job split settings
?action=splitJob /api/app/split-job-merge Merge a splitted job
?action=userKeys /api/app/user-keys-delete Delete a user's key
?action=userKeys /api/app/user-keys-info Get user's key info
?action=userKeys /api/app/user-keys-new-key Create a new key
?action=userKeys /api/app/user-keys-share Share a user's key
?action=userKeys /api/app/user-keys-new-key Create new one TM key
?action=createRandUser /api/app/create-random-user Create random user on MM
?action=getTagProjection /api/app/get-tag-projection Invoke Guess tag
?action=setCurrentSegment /api/app/set-current-segment --
?action=getSegments /api/app/get-segments Get job's segmemts
?action=ajaxUtils /api/app/ping Just a ping
?action=ajaxUtils /api/app/check-tm-key --
?action=ajaxUtils /api/app/clear-not-completed-uploads Clear not completed file uploads
?action=getTranslationMishmatches /api/app/get-translation-mismatches Get translation's mismatches
?action=engine /api/app/add-engine Add a new engine
?action=engine /api/app/disable-engine Disable an engine
?action=getContribution /api/app/get-contribution Get a contribution
?action=getSearch /api/app/search Search in a job
?action=getSearch /api/app/replace-all Replace all in a job
?action=updateJobKeys /api/app/update-job-keys Update job keys
?action=setTranslation /api/app/set-translation Translate a segment
?action=setSegmentSplit /api/app/split-segment Split a segment
?action=loadTMX /api/app/new-tmx Upload TMX files
?action=loadTMX /api/app/upload-tmx-status Import TMX file
?action=changeJobsStatus /api/app/change-job-status Change job's status
?action=downloadTMX /api/app/download-tmx Download a TMX
?action=createProject /api/app/new-project Create a new project
?action=Features_ProjectCompletion_SetChunkCompleted /api/app/set-chunk-completed Set job as completed

/api/app/fetch-change-rates

Params: none

/api/app/outsource-to

Params:

  • pid - string|int, not null
  • ppassword - string, not null
  • currency - string
  • timezone - string
  • fixedDelivery - string|int
  • typeOfService - string
  • jobs - array

/api/app/get-volume-analysis

Params:

  • pid - string|int, not null
  • ppassword - string, not null
  • jpassword - string, not null

/api/app/get-projects

Params:

  • page - string|int
  • step - string|int
  • project - string|int
  • pn - string
  • source - string
  • target - string
  • status - string
  • onlycompleted - boolean
  • id_team - string|int, not null
  • id_assignee - string|int
  • no_assignee - string

/api/app/delete-contribution

Params:

  • id_segment - string|int
  • source_lang - string, not null
  • target_lang - string, not null
  • seg - string, not null
  • tra - string, not null
  • id_job - string, not null
  • id_translator - string
  • id_match - string
  • password - string, not null
  • current_password - string

/api/app/comment/create

Params:

  • id_client - string
  • id_job - string|int, not null
  • password - string, not null
  • username - string
  • id_segment - string|int
  • source_page - string
  • revision_number - string|int
  • message - string

/api/app/comment/delete

Params:

  • id_client - string
  • username - string
  • id_job - string|int, not null
  • password - string, not null
  • id_segment - string|int
  • source_page - string
  • revision_number - string|int
  • id_comment - string|int

/api/app/comment/get-range

Params:

  • id_job - string|int, not null
  • password - string, not null
  • first_seg - string|int, not null
  • last_seg - string|int, not null

/api/app/comment/resolve

Params:

  • id_client - string
  • id_job - string|int, not null
  • password - string, not null
  • username - string
  • id_segment - string|int
  • source_page - string

/api/app/copy-all-source-to-target

Params:

  • id_job - string|int, not null
  • pass - string, not null
  • last_seg - string|int

/api/app/get-local-warning

Params:

  • id - string|int'
  • id_job - string|int', not null
  • password - string', not null
  • src_content - string'
  • trg_content - string'
  • token - string'
  • logs - string'
  • segment_status - string'
  • characters_counter - string'

/api/app/get-global-warning

Params:

  • id_job - string|int, not null
  • pass - string, not null
  • token - string

/api/app/split-job-apply

Params:

  • project_id - string|int, not null
  • project_pass - string, not null
  • job_id - string|int, not null
  • job_pass - string, not null
  • split_raw_words - boolean
  • num_split - string|int
  • split_values - string

/api/app/split-job-check

Params:

  • project_id - string|int, not null
  • project_pass - string, not null
  • job_id - string|int, not null
  • job_pass - string, not null
  • split_raw_words - boolean
  • num_split - string|int
  • split_values - string

/api/app/split-job-merge

Params:

  • project_id - string|int, not null
  • project_pass - string, not null
  • job_id - string|int, not null
  • job_pass - string, not null
  • split_raw_words - boolean
  • num_split - string|int
  • split_values - string

/api/app/user-keys-delete

Params:

  • key - string, not null
  • emails - string
  • description - string

/api/app/user-keys-info

Params:

  • key - string, not null
  • emails - string
  • description - string

/api/app/user-keys-new-key

Params:

  • key - string, not null
  • emails - string
  • description - string

/api/app/user-keys-share

Params:

  • key - string, not null
  • emails - string
  • description - string

/api/app/user-keys-new-key

Params:

  • key - string, not null
  • emails - string
  • description - string

/api/app/create-random-user

Params: none

/api/app/get-tag-projection

Params:

  • id_segment - string|int, not null
  • id_job - string|int, not null
  • password - string, not null
  • source - string, not null
  • target - string, not null
  • suggestion - string
  • source_lang - string, not null
  • target_lang - string, not null

/api/app/set-current-segment

Params:

  • id_job - string|int, not null
  • password - string, not null
  • id_segment - string|int, not null
  • revision_number - string|int

/api/app/get-segments

Params:

  • jid - string|int, not null
  • step - string|int
  • segment - string|int, not null
  • password - string, not null
  • where - string

/api/app/ping

Params: none

/api/app/check-tm-key

Params:

  • tm_key - string, not null

/api/app/clear-not-completed-uploads

Params: none

/api/app/get-translation-mismatches

Params:

  • id_job - string|int, not null
  • id_segment - string|int
  • password - string, not null

/api/app/add-engine

Params:

  • name - string, not null
  • data - string, not null
  • provider - string, not null

/api/app/disable-engine

Params:

  • id - string, not null

/api/app/get-contribution

Params:

  • id_client - string, not null
  • id_job - string|int, not null
  • id_segment - string|int
  • num_results - string|int
  • text - string, not null
  • id_translator - string
  • password - string, not null
  • current_password - string
  • is_concordance - boolean
  • from_target - boolean
  • context_before - string
  • context_after - string
  • id_before - string|int
  • id_after - string|int
  • cross_language - string

/api/app/search

Params:

  • job - string|int, not null
  • password - string, not null
  • token - string
  • source - string
  • target - string
  • status - string
  • replace - string
  • matchcase - boolean
  • exactmatch - boolean
  • strict_mode - boolean
  • revision_number - string|int

/api/app/replace-all

Params:

  • job - string|int, not null
  • password - string, not null
  • token - string
  • source - string
  • target - string
  • status - string
  • replace - string
  • matchcase - boolean
  • exactmatch - boolean
  • strict_mode - boolean
  • revision_number - string|int

/api/app/update-job-keys

Params:

  • job_id - string|int, not null
  • job_pass - string, not null
  • current_password - string
  • get_public_matches - boolean
  • data - string

/api/app/set-translation

Params:

  • id_job - string|int, not null
  • password - string, not null
  • received_password - string
  • propagate - string
  • id_segment - string|int, not null
  • time_to_edit - string
  • id_translator - string
  • translation - string
  • segment - string
  • version - string
  • chosen_suggestion_index - string
  • suggestion_array - string
  • status - string
  • splitStatuses - string
  • context_before - string
  • context_after - string
  • id_before - string
  • id_after - string
  • revisionNumber - string
  • guess_tag_used - string
  • characters_counter - string

/api/app/split-segment

Params:

  • id_job - string|int, not null
  • id_segment - string|int, not null
  • password - string, not null
  • segment - string, not null
  • target - string

/api/app/new-tmx

Params:

  • name - string
  • tm_key - string
  • uuid - string

/api/app/upload-tmx-status

Params:

  • name - string
  • tm_key - string
  • uuid - string

/api/app/change-job-status

Params:

  • name - string
  • tm_key - string
  • uuid - string
  • res_id - string|int, not null
  • password - string, not null
  • new_status - string, not null

/api/app/download-tmx

Params:

  • id_job - string|int
  • password - string
  • tm_key - string
  • tm_name - string, not null
  • downloadToken - string
  • email - string, not null
  • strip_tags - boolean
  • source - string
  • target - string

/api/app/new-project

Params:

  • file_name - string, not null
  • project_name - string
  • source_lang - string
  • target_lang - string
  • job_subject - string, not null
  • due_date - string|int
  • mt_engine - string|int
  • disable_tms_engine - boolean
  • private_tm_key - string
  • pretranslate_100 - string|int (0/1)
  • pretranslate_101 - string|int (0/1)
  • id_team - string|int
  • mmt_glossaries - string
  • deepl_id_glossary - string
  • deepl_formality - string
  • project_completion - boolean
  • get_public_matches - boolean
  • dialect_strict - string
  • filters_extraction_parameters - string
  • xliff_parameters - string
  • qa_model_template_id - string|int
  • pretranslate_100 - string|int
  • target_language_mt_engine_id - string|int

/api/app/set-chunk-completed

Params:

  • id_job - string|int, not null
  • password - string, not null
  • current_password - string

USEFUL LINK https://docs.google.com/document/d/1t5WBvzqdKVWVI_ltbJrxfWkLIJLEf3Iw_AmAmGTBBq0/edit#heading=h.h38mzrg8az3o

Copy link

gitguardian bot commented Oct 10, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant