Rest Api Cheat Sheet



HTTP – REST API – Cheatsheet Programming api, http, network, programming, protocols, rest HTTP (short for Hyper Text Transfer Protocol) may very well be the backbone of the internet. So much of the internet’s traffic relies on this simple protocol is astonishing. Authentication Cheat Sheet¶ Introduction¶. Authentication is the process of verifying that an individual, entity or website is whom it claims to be. Authentication in the context of web applications is commonly performed by submitting a username or ID and one or more items of private information that only a given user should know.

Inspired by Stephane Leroy Cheat Sheet about RQM Resources I will present my findings about RTC REST APIs. This is “work in progress” I will extend the Post as needed.

Every time you request a resource don’t forget to include the following headers.

NameValue
OSLC-Core-Version2.0
Acceptapplication/xml
Content-Typeapplication/rdf+xml

RTC REST API

Create the URL with the CLM Server name and the URL Snippet from the table below like https://jazzserver.ibm.com:9443/cm/process/project-areas

ACTIONURL SNIPPET
Show all Servicesccm/service > 302 Redirect to

ccm/service/com.ibm.team.repository.service.ITeamServerStatusContentService/

Service Provider Catalog ccm/oslc/workitems/catalog

DNG REST API

Rest Api Cheat Sheet Cheat

Create the URL with the CLM Server name and the URL Snippet from the table below like https://jazzserver.ibm.com:9443/cm/process/project-areas

ACTIONURL SNIPPET
Show all Servicesrm/service > 302 Redirect to

rm/service/com.ibm.team.repository.service.ITeamServerStatusContentService/

RTC Process REST API (link)

Create the URL with the CLM Server name and the URL Snippet from the table below like https://jazzserver.ibm.com:9443/cm/process/project-areas

Cheat
ActionURL Snippet
Get RTC Project Areasccm/process/project-areas
Service Provider Links collectionccm/process/project-areas/_qZ1dsu9YEeOb7eLwSED0KA/links
Service Provider Catalog ccm/oslc/workitems/catalog

DNG Process REST API (no documentation found, put it seems similar to RTC)

Rest Api Cheat Sheet Free

ActionURL Snippet
Get DNG Project Areasrm/process/project-areas
Service Provider Links collectionrm/process/project-areas/_7jWhMl3qEeSt–_ZBwtxhQ/links

RTC Service SOAP API

Create the URL with the CLM Server name and the URL Snippet from the table below like https://jazzserver.ibm.com:9443/cm/process/project-areas

ActionURL Snippet
Get al RTC Project Areasccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/allProjectAreas?hideArchivedProjects=true
Get Queries of a certain PA ccm/service/com.ibm.team.workitem.common.internal.rest.IQueryRestService/scopedQueries?scope=3&includeCount=false&includeParentScopes=true&projectAreaItemId=_0H5NsGmGEeSmHamBorgNJw&suppressCrossRepoQueries=false

RQM REST API (Reporting API)

To my surprise is the RQM Reporting API “CRUD” able.

Details here.

Api Security Cheat Sheet

This quick reference of the REST API of Orthanc isautomatically generated from the source code of Orthanc. Clicking onone of the HTTP methods will open its full OpenAPI documentation.

If you are looking for samples, check out the dedicated FAQentry.

Reference
PathGETPOSTDELETEPUTSummary
/changesGETDELETEList changes
/exportsGETDELETEList exports
/instancesGETPOSTList the available instances
/instances/{id}GETDELETEGet information about some instance
/instances/{id}/anonymizePOSTAnonymize instance
/instances/{id}/attachmentsGETList attachments
/instances/{id}/attachments/{name}GETDELETEPUTList operations on attachments
/instances/{id}/attachments/{name}/compressPOSTCompress attachment
/instances/{id}/attachments/{name}/compressed-dataGETGet attachment (no decompression)
/instances/{id}/attachments/{name}/compressed-md5GETGet MD5 of attachment on disk
/instances/{id}/attachments/{name}/compressed-sizeGETGet size of attachment on disk
/instances/{id}/attachments/{name}/dataGETGet attachment
/instances/{id}/attachments/{name}/is-compressedGETIs attachment compressed?
/instances/{id}/attachments/{name}/md5GETGet MD5 of attachment
/instances/{id}/attachments/{name}/sizeGETGet size of attachment
/instances/{id}/attachments/{name}/uncompressPOSTUncompress attachment
/instances/{id}/attachments/{name}/verify-md5POSTVerify attachment
/instances/{id}/contentGETGet raw tag
/instances/{id}/exportPOSTWrite DICOM onto filesystem
/instances/{id}/fileGETDownload DICOM
/instances/{id}/framesGETList available frames
/instances/{id}/frames/{frame}GETList operations
/instances/{id}/frames/{frame}/image-int16GETDecode a frame (int16)
/instances/{id}/frames/{frame}/image-uint16GETDecode a frame (uint16)
/instances/{id}/frames/{frame}/image-uint8GETDecode a frame (uint8)
/instances/{id}/frames/{frame}/matlabGETDecode frame for Matlab
/instances/{id}/frames/{frame}/previewGETDecode a frame (preview)
/instances/{id}/frames/{frame}/rawGETAccess raw frame
/instances/{id}/frames/{frame}/raw.gzGETAccess raw frame (compressed)
/instances/{id}/frames/{frame}/renderedGETRender a frame
/instances/{id}/headerGETGet DICOM meta-header
/instances/{id}/image-int16GETDecode an image (int16)
/instances/{id}/image-uint16GETDecode an image (uint16)
/instances/{id}/image-uint8GETDecode an image (uint8)
/instances/{id}/matlabGETDecode frame for Matlab
/instances/{id}/metadataGETList metadata
/instances/{id}/metadata/{name}GETDELETEPUTGet metadata
/instances/{id}/modifyPOSTModify instance
/instances/{id}/moduleGETGet instance module
/instances/{id}/patientGETGet parent patient
/instances/{id}/pdfGETGet embedded PDF
/instances/{id}/previewGETDecode an image (preview)
/instances/{id}/reconstructPOSTReconstruct tags of instance
/instances/{id}/renderedGETRender an image
/instances/{id}/seriesGETGet parent series
/instances/{id}/simplified-tagsGETGet human-readable tags
/instances/{id}/statisticsGETGet instance statistics
/instances/{id}/studyGETGet parent study
/instances/{id}/tagsGETGet DICOM tags
/jobsGETList jobs
/jobs/{id}GETGet job
/jobs/{id}/cancelPOSTCancel job
/jobs/{id}/pausePOSTPause job
/jobs/{id}/resubmitPOSTResubmit job
/jobs/{id}/resumePOSTResume job
/jobs/{id}/{key}GETGet job output
/modalitiesGETList DICOM modalities
/modalities/{id}GETDELETEPUTList operations on modality
/modalities/{id}/configurationGETGet modality configuration
/modalities/{id}/echoPOSTTrigger C-ECHO SCU
/modalities/{id}/find(post)(deprecated) Hierarchical C-FIND SCU
/modalities/{id}/find-instance(post)(deprecated) C-FIND SCU for instances
/modalities/{id}/find-patient(post)(deprecated) C-FIND SCU for patients
/modalities/{id}/find-series(post)(deprecated) C-FIND SCU for series
/modalities/{id}/find-study(post)(deprecated) C-FIND SCU for studies
/modalities/{id}/find-worklistPOSTC-FIND SCU for worklist
/modalities/{id}/movePOSTTrigger C-MOVE SCU
/modalities/{id}/queryPOSTTrigger C-FIND SCU
/modalities/{id}/storage-commitmentPOSTTrigger storage commitment request
/modalities/{id}/storePOSTTrigger C-STORE SCU
/modalities/{id}/store-straightPOSTStraight C-STORE SCU
/patientsGETList the available patients
/patients/{id}GETDELETEGet information about some patient
/patients/{id}/anonymizePOSTAnonymize patient
/patients/{id}/archiveGETPOSTCreate ZIP archive
/patients/{id}/attachmentsGETList attachments
/patients/{id}/attachments/{name}GETDELETEPUTList operations on attachments
/patients/{id}/attachments/{name}/compressPOSTCompress attachment
/patients/{id}/attachments/{name}/compressed-dataGETGet attachment (no decompression)
/patients/{id}/attachments/{name}/compressed-md5GETGet MD5 of attachment on disk
/patients/{id}/attachments/{name}/compressed-sizeGETGet size of attachment on disk
/patients/{id}/attachments/{name}/dataGETGet attachment
/patients/{id}/attachments/{name}/is-compressedGETIs attachment compressed?
/patients/{id}/attachments/{name}/md5GETGet MD5 of attachment
/patients/{id}/attachments/{name}/sizeGETGet size of attachment
/patients/{id}/attachments/{name}/uncompressPOSTUncompress attachment
/patients/{id}/attachments/{name}/verify-md5POSTVerify attachment
/patients/{id}/instancesGETGet child instances
/patients/{id}/instances-tagsGETGet tags of instances
/patients/{id}/mediaGETPOSTCreate DICOMDIR media
/patients/{id}/metadataGETList metadata
/patients/{id}/metadata/{name}GETDELETEPUTGet metadata
/patients/{id}/modifyPOSTModify patient
/patients/{id}/moduleGETGet patient module
/patients/{id}/protectedGETPUTIs the patient protected against recycling?
/patients/{id}/reconstructPOSTReconstruct tags of patient
/patients/{id}/seriesGETGet child series
/patients/{id}/shared-tagsGETGet shared tags
/patients/{id}/statisticsGETGet patient statistics
/patients/{id}/studiesGETGet child studies
/peersGETList Orthanc peers
/peers/{id}GETDELETEPUTList operations on peer
/peers/{id}/configurationGETGet peer configuration
/peers/{id}/storePOSTSend to Orthanc peer
/peers/{id}/store-straightPOSTStraight store to peer
/peers/{id}/systemGETGet peer system information
/pluginsGETList plugins
/plugins/explorer.jsGETJavaScript extensions to Orthanc Explorer
/plugins/{id}GETGet plugin
/queriesGETList query/retrieve operations
/queries/{id}GETDELETEList operations on a query
/queries/{id}/answersGETList answers to a query
/queries/{id}/answers/{index}GETList operations on an answer
/queries/{id}/answers/{index}/contentGETGet one answer
/queries/{id}/answers/{index}/query-instancesPOSTQuery the child instances of an answer
/queries/{id}/answers/{index}/query-seriesPOSTQuery the child series of an answer
/queries/{id}/answers/{index}/query-studiesPOSTQuery the child studies of an answer
/queries/{id}/answers/{index}/retrievePOSTRetrieve one answer
/queries/{id}/levelGETGet level of original query
/queries/{id}/modalityGETGet modality of original query
/queries/{id}/queryGETGet original query arguments
/queries/{id}/retrievePOSTRetrieve all answers
/seriesGETList the available series
/series/{id}GETDELETEGet information about some series
/series/{id}/anonymizePOSTAnonymize series
/series/{id}/archiveGETPOSTCreate ZIP archive
/series/{id}/attachmentsGETList attachments
/series/{id}/attachments/{name}GETDELETEPUTList operations on attachments
/series/{id}/attachments/{name}/compressPOSTCompress attachment
/series/{id}/attachments/{name}/compressed-dataGETGet attachment (no decompression)
/series/{id}/attachments/{name}/compressed-md5GETGet MD5 of attachment on disk
/series/{id}/attachments/{name}/compressed-sizeGETGet size of attachment on disk
/series/{id}/attachments/{name}/dataGETGet attachment
/series/{id}/attachments/{name}/is-compressedGETIs attachment compressed?
/series/{id}/attachments/{name}/md5GETGet MD5 of attachment
/series/{id}/attachments/{name}/sizeGETGet size of attachment
/series/{id}/attachments/{name}/uncompressPOSTUncompress attachment
/series/{id}/attachments/{name}/verify-md5POSTVerify attachment
/series/{id}/instancesGETGet child instances
/series/{id}/instances-tagsGETGet tags of instances
/series/{id}/mediaGETPOSTCreate DICOMDIR media
/series/{id}/metadataGETList metadata
/series/{id}/metadata/{name}GETDELETEPUTGet metadata
/series/{id}/modifyPOSTModify series
/series/{id}/moduleGETGet series module
/series/{id}/ordered-slices(get)(deprecated) Order the slices
/series/{id}/patientGETGet parent patient
/series/{id}/reconstructPOSTReconstruct tags of series
/series/{id}/shared-tagsGETGet shared tags
/series/{id}/statisticsGETGet series statistics
/series/{id}/studyGETGet parent study
/statisticsGETGet database statistics
/storage-commitment/{id}GETGet storage commitment report
/storage-commitment/{id}/removePOSTRemove after storage commitment
/studiesGETList the available studies
/studies/{id}GETDELETEGet information about some study
/studies/{id}/anonymizePOSTAnonymize study
/studies/{id}/archiveGETPOSTCreate ZIP archive
/studies/{id}/attachmentsGETList attachments
/studies/{id}/attachments/{name}GETDELETEPUTList operations on attachments
/studies/{id}/attachments/{name}/compressPOSTCompress attachment
/studies/{id}/attachments/{name}/compressed-dataGETGet attachment (no decompression)
/studies/{id}/attachments/{name}/compressed-md5GETGet MD5 of attachment on disk
/studies/{id}/attachments/{name}/compressed-sizeGETGet size of attachment on disk
/studies/{id}/attachments/{name}/dataGETGet attachment
/studies/{id}/attachments/{name}/is-compressedGETIs attachment compressed?
/studies/{id}/attachments/{name}/md5GETGet MD5 of attachment
/studies/{id}/attachments/{name}/sizeGETGet size of attachment
/studies/{id}/attachments/{name}/uncompressPOSTUncompress attachment
/studies/{id}/attachments/{name}/verify-md5POSTVerify attachment
/studies/{id}/instancesGETGet child instances
/studies/{id}/instances-tagsGETGet tags of instances
/studies/{id}/mediaGETPOSTCreate DICOMDIR media
/studies/{id}/mergePOSTMerge study
/studies/{id}/metadataGETList metadata
/studies/{id}/metadata/{name}GETDELETEPUTGet metadata
/studies/{id}/modifyPOSTModify study
/studies/{id}/moduleGETGet study module
/studies/{id}/module-patientGETGet patient module of study
/studies/{id}/patientGETGet parent patient
/studies/{id}/reconstructPOSTReconstruct tags of study
/studies/{id}/seriesGETGet child series
/studies/{id}/shared-tagsGETGet shared tags
/studies/{id}/splitPOSTSplit study
/studies/{id}/statisticsGETGet study statistics
/systemGETGet system information
/toolsGETList operations
/tools/accepted-transfer-syntaxesGETPUTGet accepted transfer syntaxes
/tools/create-archivePOSTCreate ZIP archive
/tools/create-dicomPOSTCreate one DICOM instance
/tools/create-mediaPOSTCreate DICOMDIR media
/tools/create-media-extendedPOSTCreate DICOMDIR media
/tools/default-encodingGETPUTGet default encoding
/tools/dicom-conformanceGETGet DICOM conformance
/tools/dicom-echoPOSTTrigger C-ECHO SCU
/tools/execute-scriptPOSTExecute Lua script
/tools/findPOSTLook for local resources
/tools/generate-uidGETGenerate an identifier
/tools/invalidate-tagsPOSTInvalidate DICOM-as-JSON summaries
/tools/log-levelGETPUTGet main log level
/tools/log-level-dicomGETPUTGet log level for dicom
/tools/log-level-genericGETPUTGet log level for generic
/tools/log-level-httpGETPUTGet log level for http
/tools/log-level-jobsGETPUTGet log level for jobs
/tools/log-level-luaGETPUTGet log level for lua
/tools/log-level-pluginsGETPUTGet log level for plugins
/tools/log-level-sqliteGETPUTGet log level for sqlite
/tools/lookupPOSTLook for DICOM identifiers
/tools/metricsGETPUTAre metrics collected?
/tools/metrics-prometheusGETGet usage metrics
/tools/nowGETGet UTC time
/tools/now-localGETGet local time
/tools/reconstructPOSTReconstruct all the index
/tools/resetPOSTRestart Orthanc
/tools/shutdownPOSTShutdown Orthanc
/tools/unknown-sop-class-acceptedGETPUTIs unknown SOP class accepted?
Sheet

Web Api Rest Cheat Sheet

NB: Up to Orthanc 1.8.1, this cheat sheet was manually published as anonline spreadsheet. Thisspreadsheet is still available online for history purpose, but is nowleft unmaintained.