{
    "componentChunkName": "component---src-templates-doc-tsx",
    "path": "/docs/latest/en/test-cases/",
    "result": {"data":{"navigation":{"nodes":[{"section":"Getting started","entries":[{"frontmatter":{"title":"Installation","subtitle":"Installation of scm-manager","partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/installation/"}},{"frontmatter":{"title":"First Startup","subtitle":"Administration User Creation","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/first-startup/"}},{"frontmatter":{"title":"Migrate from v1 to v3","subtitle":"How to use the Migration-Wizard","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/migrate-scm-manager-from-v1/"}},{"frontmatter":{"title":"Migrate from v2 to v3","subtitle":"Changes in the configuration","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/migrate-scm-manager-from-v2/"}},{"frontmatter":{"title":"Import existing repositories","subtitle":"How to import existing repositories into SCM-Manager","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/import/"}},{"frontmatter":{"title":"Frequently Asked Questions","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/faq/"}},{"frontmatter":{"title":"Known Issues","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/known-issues/"}}]},{"section":"User-oriented","entries":[{"frontmatter":{"title":"Repository","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/repo/"}},{"frontmatter":{"title":"User","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/user/"}},{"frontmatter":{"title":"Groups","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/group/"}},{"frontmatter":{"title":"Administration","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/admin/"}},{"frontmatter":{"title":"Profile","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/profile/"}},{"frontmatter":{"title":"Notifications","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/notification/"}},{"frontmatter":{"title":"CLI Client","subtitle":null,"partiallyActive":true},"fields":{"slug":"/docs/3.12.x/en/user/cli/"}},{"frontmatter":{"title":"Shortcuts","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/user/shortcuts/"}}]},{"section":"Administration","entries":[{"frontmatter":{"title":"Base Directory","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/administration/basedirectory/"}},{"frontmatter":{"title":"Logging","subtitle":"Configuration and locations of SCM-Manager logging","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/administration/logging/"}},{"frontmatter":{"title":"SCM-Server Configuration","subtitle":"Various configuration options for the SCM-Server","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/administration/scm-server/"}},{"frontmatter":{"title":"Reverse Proxy","subtitle":"How to use SCM-Manager with common reverse proxies","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/administration/reverse-proxies/"}},{"frontmatter":{"title":"Caching for Working Directories","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/administration/workdir_caching/"}}]},{"section":"Development","entries":[{"frontmatter":{"title":"IntelliJ IDEA Configuration","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/intellij-idea-configuration/"}},{"frontmatter":{"title":"Building SCM-Manager from Source","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/build-from-source/"}},{"frontmatter":{"title":"Architecture overview","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/architecture-overview/"}},{"frontmatter":{"title":"Common pitfall occurred while developing the SCM V2","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/ui-common-pitfall/"}},{"frontmatter":{"title":"Permission Concept","subtitle":"Fine-grained permission for SCM-Manager v2","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/permission-concept/"}},{"frontmatter":{"title":"Decision Table","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/decision-table/"}},{"frontmatter":{"title":"Error Handling","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/error-handling/"}},{"frontmatter":{"title":"Styleguide","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/styleguide/"}},{"frontmatter":{"title":"Testing Guide","subtitle":"Howto write tests for SCM-Manager","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/testing-guide/"}},{"frontmatter":{"title":"Integration Tests","subtitle":"How to run integration tests","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/integration-tests/"}},{"frontmatter":{"title":"UI-Extensions","subtitle":"How to extend the SCM-Manager UI with plugins","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/ui-extensions/"}},{"frontmatter":{"title":"I18n","subtitle":"Howto do internationalization","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/i18n/"}},{"frontmatter":{"title":"Building Forms","subtitle":"Howto build forms for SCM-Manager","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/building-forms/"}},{"frontmatter":{"title":"Javadoc","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/javadoc/"}},{"frontmatter":{"title":"CLI Guidelines","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/cli-guideline/"}},{"frontmatter":{"title":"Definition of Done","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/definition-of-done/"}},{"frontmatter":{"title":"DOD for UI development","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/ui-dod/"}}]},{"section":"Plugin Development","entries":[{"frontmatter":{"title":"Create a plugin","subtitle":"Create a new SCM-Manager plugin","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/create/"}},{"frontmatter":{"title":"Migrate a v1 plugin","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/migrate-plugin-from-v1/"}},{"frontmatter":{"title":"Extension Points","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/extension-points/"}},{"frontmatter":{"title":"i18n for Plugins","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/i18n-for-plugins/"}},{"frontmatter":{"title":"Plugin Descriptor","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/plugin-descriptor/"}},{"frontmatter":{"title":"SCM-Manager v2 Plugin Development","subtitle":null,"partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/plugin-development/"}},{"frontmatter":{"title":"Publish","subtitle":"Publish your Plugin","partiallyActive":null},"fields":{"slug":"/docs/3.12.x/en/development/plugins/publish/"}}]}]},"versions":{"group":[{"fieldValue":"1.0.x"},{"fieldValue":"1.x"},{"fieldValue":"2.0.x"},{"fieldValue":"2.1.x"},{"fieldValue":"2.10.x"},{"fieldValue":"2.11.x"},{"fieldValue":"2.12.x"},{"fieldValue":"2.13.x"},{"fieldValue":"2.14.x"},{"fieldValue":"2.15.x"},{"fieldValue":"2.16.x"},{"fieldValue":"2.17.x"},{"fieldValue":"2.18.x"},{"fieldValue":"2.19.x"},{"fieldValue":"2.2.x"},{"fieldValue":"2.20.x"},{"fieldValue":"2.21.x"},{"fieldValue":"2.22.x"},{"fieldValue":"2.23.x"},{"fieldValue":"2.24.x"},{"fieldValue":"2.25.x"},{"fieldValue":"2.26.x"},{"fieldValue":"2.27.x"},{"fieldValue":"2.28.x"},{"fieldValue":"2.29.x"},{"fieldValue":"2.3.x"},{"fieldValue":"2.30.x"},{"fieldValue":"2.31.x"},{"fieldValue":"2.32.x"},{"fieldValue":"2.33.x"},{"fieldValue":"2.34.x"},{"fieldValue":"2.35.x"},{"fieldValue":"2.36.x"},{"fieldValue":"2.37.x"},{"fieldValue":"2.38.x"},{"fieldValue":"2.39.x"},{"fieldValue":"2.4.x"},{"fieldValue":"2.40.x"},{"fieldValue":"2.41.x"},{"fieldValue":"2.42.x"},{"fieldValue":"2.43.x"},{"fieldValue":"2.44.x"},{"fieldValue":"2.45.x"},{"fieldValue":"2.46.x"},{"fieldValue":"2.47.x"},{"fieldValue":"2.48.x"},{"fieldValue":"2.5.x"},{"fieldValue":"2.6.x"},{"fieldValue":"2.7.x"},{"fieldValue":"2.8.x"},{"fieldValue":"2.9.x"},{"fieldValue":"3.0.x"},{"fieldValue":"3.1.x"},{"fieldValue":"3.10.x"},{"fieldValue":"3.11.x"},{"fieldValue":"3.12.x"},{"fieldValue":"3.2.x"},{"fieldValue":"3.3.x"},{"fieldValue":"3.4.x"},{"fieldValue":"3.5.x"},{"fieldValue":"3.6.x"},{"fieldValue":"3.7.x"},{"fieldValue":"3.8.x"},{"fieldValue":"3.9.x"}]},"languages":{"group":[{"fieldValue":"de"},{"fieldValue":"en"}]},"markdownRemark":{"html":"<p>Describes the expected behaviour for SCMM v2 REST Resources using manual tests.</p>\n<p>The following states general test cases per HTTP Method and en expected return code as well as exemplary curl calls.\nResource-specifics are stated</p>\n<h2 id=\"test-cases\" style=\"position:relative;\"><a href=\"#test-cases\" aria-label=\"test cases permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Test Cases</h2>\n<h3 id=\"get\" style=\"position:relative;\"><a href=\"#get\" aria-label=\"get permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h3>\n<ul>\n<li>Collection Resource (e.g. <code class=\"language-text\">/users</code>)\n<ul>\n<li>Without parameters -> 200</li>\n<li>Parameters\n<ul>\n<li><code class=\"language-text\">?pageSize=1</code> -> Only one embedded element, pageTotal reflects the correct number of pages, <code class=\"language-text\">last</code> link points to last page.</li>\n<li><code class=\"language-text\">?pageSize=1&amp;page=1</code> -> <code class=\"language-text\">next</code> link points to page 0 ; <code class=\"language-text\">prev</code> link points to page 2</li>\n<li><code class=\"language-text\">?sortBy=admin</code> -> Sorted by <code class=\"language-text\">admin</code> field of embedded objects</li>\n<li><code class=\"language-text\">?sortBy=admin&amp;desc=true</code> -> Invert sorting</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Individual Resource (e.g. <code class=\"language-text\">/users/scmadmin</code>)\n<ul>\n<li>Exists  -> 200</li>\n<li>Not Existings -> 404</li>\n<li>Known Field (e.g. <code class=\"language-text\">?fields=name</code>) returns only name field</li>\n<li>Unknown field (e.g. <code class=\"language-text\">?fields=nam</code>) returns empty object</li>\n</ul>\n</li>\n<li>without permission (individual and collection (TODO)) -> 401</li>\n</ul>\n<h3 id=\"post\" style=\"position:relative;\"><a href=\"#post\" aria-label=\"post permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>POST</h3>\n<ul>\n<li>not existing -> 204</li>\n<li>existing -> 409</li>\n<li>without permission -> 401</li>\n</ul>\n<h3 id=\"put\" style=\"position:relative;\"><a href=\"#put\" aria-label=\"put permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h3>\n<ul>\n<li>existing -> 204\n<ul>\n<li>lastModified is updated</li>\n<li>lastModified &#x26; creationDate cannot be overwritten by client</li>\n</ul>\n</li>\n<li>not exist -> 404</li>\n<li>Change ID / Name (the one from the URL in the body) -> 400</li>\n<li>Partial PUT (Set only one field, for example) -> Set all other fields to null or return 400?</li>\n<li>without permission -> 401</li>\n<li>Change unmodifiable fields\n<ul>\n<li>ID/Name --> 400</li>\n<li>creationDate, lastModified --> 200 is liberally ignored</li>\n<li>Additional unmodifiable fields per resource, see examples</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"delete\" style=\"position:relative;\"><a href=\"#delete\" aria-label=\"delete permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h3>\n<ul>\n<li>existing -> 204</li>\n<li>not existing -> 204</li>\n<li>without permission -> 401</li>\n</ul>\n<h2 id=\"exemplary-calls--resource-specific-test-cases\" style=\"position:relative;\"><a href=\"#exemplary-calls--resource-specific-test-cases\" aria-label=\"exemplary calls  resource specific test cases permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Exemplary calls &#x26; Resource specific test cases</h2>\n<p>In order to extend those tests to other Resources, have a look at the rest docs. Note that the Content Type is specific to each resource as well.</p>\n<p>After calling <code class=\"language-text\">mvn -pl scm-webapp compile -P doc</code> the docs are available at <code class=\"language-text\">scm-webapp/target/restdocs/index.html</code>.</p>\n<h3 id=\"users\" style=\"position:relative;\"><a href=\"#users\" aria-label=\"users permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Users</h3>\n<h4 id=\"get-1\" style=\"position:relative;\"><a href=\"#get-1\" aria-label=\"get 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<h5 id=\"collections\" style=\"position:relative;\"><a href=\"#collections\" aria-label=\"collections permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/users?sortBy=admin&amp;desc=true\"</span></code></pre></div>\n<h5 id=\"individual\" style=\"position:relative;\"><a href=\"#individual\" aria-label=\"individual permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/users/scmadmin?fields=name,_links\"</span></code></pre></div>\n<h4 id=\"post-1\" style=\"position:relative;\"><a href=\"#post-1\" aria-label=\"post 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>POST</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"properties\": null,\n  \"active\": true,\n  \"admin\": false,\n  \"creationDate\": 1527510477501,\n  \"displayName\": \"xyz\",\n  \"lastModified\": null,\n  \"mail\": \"x@abcde.cd\",\n  \"name\": \"xyz\",\n  \"password\": \"pwd123\",\n  \"type\": \"xml\"\n  }'</span> <span class=\"token punctuation\">\\</span>\n   <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-user+json;v=2\"</span>  http://localhost:8081/scm/api/v2/users/</code></pre></div>\n<h4 id=\"put-1\" style=\"position:relative;\"><a href=\"#put-1\" aria-label=\"put 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<ul>\n<li>Change unmodifiable fields\n<ul>\n<li>type? -> can be overwritten right now</li>\n</ul>\n</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"properties\": null,\n  \"active\": true,\n  \"admin\": false,\n  \"creationDate\": 1527510477501,\n  \"displayName\": \"xyz\",\n  \"lastModified\": null,\n  \"mail\": \"x@abcde.cd\",\n  \"name\": \"xyz\",\n  \"password\": \"pwd123\",\n  \"type\": \"xml\"\n  }'</span> <span class=\"token punctuation\">\\</span>\n   <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-user+json;v=2\"</span>  http://localhost:8081/scm/api/v2/users/xyz </code></pre></div>\n<h4 id=\"delete-1\" style=\"position:relative;\"><a href=\"#delete-1\" aria-label=\"delete 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> DELETE <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin http://localhost:8081/scm/api/v2/users/xyz</code></pre></div>\n<h3 id=\"groups\" style=\"position:relative;\"><a href=\"#groups\" aria-label=\"groups permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Groups</h3>\n<h4 id=\"get-2\" style=\"position:relative;\"><a href=\"#get-2\" aria-label=\"get 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<h5 id=\"collections-1\" style=\"position:relative;\"><a href=\"#collections-1\" aria-label=\"collections 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/groups/?sortBy=name&amp;desc=true\"</span></code></pre></div>\n<h5 id=\"individual-1\" style=\"position:relative;\"><a href=\"#individual-1\" aria-label=\"individual 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin http://localhost:8081/scm/api/v2/groups/firstGroup</code></pre></div>\n<h4 id=\"post-2\" style=\"position:relative;\"><a href=\"#post-2\" aria-label=\"post 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>POST</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{                                                     \n  \"creationDate\": \"2018-06-28T07:42:45.281Z\",\n  \"lastModified\": \"2018-06-28T07:42:45.281Z\",\n  \"description\": \"descr\",\n  \"name\": \"firstGroup\",\n  \"type\": \"admin\",\n  \"members\": [ \"scmadmin\" ],\n  \"properties\": {\n    \"pro1\": \"123\",\n        \"pro2\": \"abc\"\n  },\n  \"links\": {\n    \"empty\": true\n  }\n }'</span> <span class=\"token punctuation\">\\</span>\n  <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-group+json\"</span> http://localhost:8081/scm/api/v2/groups/</code></pre></div>\n<h4 id=\"put-2\" style=\"position:relative;\"><a href=\"#put-2\" aria-label=\"put 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{                                              \n  \"creationDate\": \"2018-06-28T07:42:45.281Z\",\n  \"lastModified\": \"2018-06-28T07:42:45.281Z\",\n  \"description\": \"descr\",\n  \"name\": \"firstGroup\",\n  \"type\": \"admin\",\n  \"members\": [ \"scmadmin\" ],\n  \"properties\": {\n    \"pro1\": \"123\",\n        \"pro2\": \"abc\"\n  },\n  \"links\": {\n    \"empty\": true\n  }\n }'</span> <span class=\"token punctuation\">\\</span>\n  <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-group+json\"</span> http://localhost:8081/scm/api/v2/groups/firstGroup</code></pre></div>\n<h4 id=\"delete-2\" style=\"position:relative;\"><a href=\"#delete-2\" aria-label=\"delete 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> DELETE <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin http://localhost:8081/scm/api/v2/groups/firstGroup</code></pre></div>\n<h3 id=\"repositories\" style=\"position:relative;\"><a href=\"#repositories\" aria-label=\"repositories permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Repositories</h3>\n<h4 id=\"get-3\" style=\"position:relative;\"><a href=\"#get-3\" aria-label=\"get 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<h5 id=\"collections-2\" style=\"position:relative;\"><a href=\"#collections-2\" aria-label=\"collections 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/?sortBy=name&amp;pageSize=1&amp;desc=true\"</span></code></pre></div>\n<h5 id=\"individual-2\" style=\"position:relative;\"><a href=\"#individual-2\" aria-label=\"individual 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/42/arepo\"</span></code></pre></div>\n<h4 id=\"post-3\" style=\"position:relative;\"><a href=\"#post-3\" aria-label=\"post 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>POST</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"a@con.tact\",\n  \"creationDate\": \"2018-07-11T08:54:44.569Z\",\n  \"description\": \"Desc\",\n  \"name\": \"arepo\",\n  \"type\": \"git\"\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories</code></pre></div>\n<h4 id=\"put-3\" style=\"position:relative;\"><a href=\"#put-3\" aria-label=\"put 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<ul>\n<li>Change unmodifiable fields\n<ul>\n<li>type? -> Leads to 500 right now</li>\n</ul>\n</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"anoter@con.tact\",\n  \"creationDate\": \"2017-04-11T08:54:45.569Z\",\n  \"description\": \"NEW\", \n  \"namespace\": \"42\",\n  \"name\": \"arepo\",\n  \"type\": \"git\",\n  \"archived\": \"true\"\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories/42/arepo</code></pre></div>\n<h4 id=\"delete-3\" style=\"position:relative;\"><a href=\"#delete-3\" aria-label=\"delete 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> DELETE <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/42/anSVNRepo\"</span></code></pre></div>\n<h3 id=\"repository-permissions\" style=\"position:relative;\"><a href=\"#repository-permissions\" aria-label=\"repository permissions permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Repository Permissions</h3>\n<p>In this test we do not only test the REST endpoints themselves, but also the effect of the different permissions.</p>\n<h4 id=\"prerequisites\" style=\"position:relative;\"><a href=\"#prerequisites\" aria-label=\"prerequisites permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Prerequisites</h4>\n<p>For these tests we assume that you have created</p>\n<ul>\n<li>a git repository <code class=\"language-text\">scmadmin/git</code>, and</li>\n<li>a user named <code class=\"language-text\">user</code>.</li>\n</ul>\n<p>If your entities have other ids, change them according to your data.</p>\n<h4 id=\"get-4\" style=\"position:relative;\"><a href=\"#get-4\" aria-label=\"get 4 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<p>This request should return an empty list of permissions:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/\"</span></code></pre></div>\n<h4 id=\"post--read-permission\" style=\"position:relative;\"><a href=\"#post--read-permission\" aria-label=\"post  read permission permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>POST / READ permission</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> POST <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"name\": \"user\", \"type\":\"READ\"\n  }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-permission+json\"</span>\n  <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/\"</span></code></pre></div>\n<p>After this, you should be able to <code class=\"language-text\">GET</code> the repository with the user <code class=\"language-text\">user</code>:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> user:user <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/\"</span></code></pre></div>\n<p>Trying to change the repository using <code class=\"language-text\">PUT</code> with the user <code class=\"language-text\">user</code> should result in <code class=\"language-text\">403</code>:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> user:user <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"zaphod.beeblebrox@hitchhiker.com\",\n  \"namespace\":\"scmadmin\",\n  \"name\": \"git\",\n  \"archived\": false,\n  \"type\": \"git\"\n}\n'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories/scmadmin/git</code></pre></div>\n<p>Reading the permissions of the repository with the user <code class=\"language-text\">user</code> should result in <code class=\"language-text\">403</code>:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> user:user <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/\"</span></code></pre></div>\n<p>The user should be able to <code class=\"language-text\">clone</code> the repository:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">git</span> clone http://owner@localhost:8081/scm/git/scmadmin/git</code></pre></div>\n<p>The user should <em>not</em> be able to <code class=\"language-text\">push</code> to the repository:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token builtin class-name\">cd</span> <span class=\"token function\">git</span> \n<span class=\"token function\">touch</span> a\n<span class=\"token function\">git</span> <span class=\"token function\">add</span> a\n<span class=\"token function\">git</span> commit <span class=\"token parameter variable\">-m</span> a\n<span class=\"token function\">git</span> push</code></pre></div>\n<h4 id=\"put--write-permission\" style=\"position:relative;\"><a href=\"#put--write-permission\" aria-label=\"put  write permission permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT / WRITE permission</h4>\n<p>It should be possible to change the permission for a specific user:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"name\": \"user\",\n   \"type\":\"WRITE\"\n   }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-permission+json\"</span> <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/user\"</span></code></pre></div>\n<p>After this the user <code class=\"language-text\">user</code> should now be able to <code class=\"language-text\">push</code> the repository created and modified beforehand.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token builtin class-name\">cd</span> <span class=\"token function\">git</span> \n<span class=\"token function\">git</span> push</code></pre></div>\n<h4 id=\"owner-permission\" style=\"position:relative;\"><a href=\"#owner-permission\" aria-label=\"owner permission permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>OWNER permission</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"name\": \"user\",\n   \"type\":\"OWNER\"\n   }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-permission+json\"</span> <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/user\"</span></code></pre></div>\n<p>After this, the user should be able to <code class=\"language-text\">GET</code> the permissions:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> user:user <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/\"</span></code></pre></div>\n<p>Additionally, the user should be able to change permissions:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"name\": \"user\",\n   \"type\":\"OWNER\"\n   }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-permission+json\"</span> <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/user\"</span></code></pre></div>\n<h4 id=\"delete-4\" style=\"position:relative;\"><a href=\"#delete-4\" aria-label=\"delete 4 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h4>\n<p>Finally, a user with the role <code class=\"language-text\">OWNER</code> should be able to delete permissions:</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> DELETE <span class=\"token parameter variable\">-vu</span> user:user <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/git/permissions/user\"</span></code></pre></div>\n<h3 id=\"branches\" style=\"position:relative;\"><a href=\"#branches\" aria-label=\"branches permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Branches</h3>\n<ul>\n<li>In advance: POST repo.</li>\n<li>Clone Repo, add Branches</li>\n</ul>\n<h4 id=\"get-5\" style=\"position:relative;\"><a href=\"#get-5\" aria-label=\"get 5 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<h5 id=\"collections-3\" style=\"position:relative;\"><a href=\"#collections-3\" aria-label=\"collections 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/branches\"</span></code></pre></div>\n<h5 id=\"individual-3\" style=\"position:relative;\"><a href=\"#individual-3\" aria-label=\"individual 3 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/branches/master\"</span></code></pre></div>\n<h3 id=\"configuration\" style=\"position:relative;\"><a href=\"#configuration\" aria-label=\"configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Configuration</h3>\n<h4 id=\"get-6\" style=\"position:relative;\"><a href=\"#get-6\" aria-label=\"get 6 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config\"</span></code></pre></div>\n<h4 id=\"put-4\" style=\"position:relative;\"><a href=\"#put-4\" aria-label=\"put 4 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"proxyPassword\": \"pw\",\n  \"proxyPort\": 8082,\n  \"proxyServer\": \"proxy.mydomain.com\",\n  \"proxyUser\": \"trillian\",\n  \"enableProxy\": false,\n  \"realmDescription\": \"SONIA :: SCM Manager\",\n  \"enableRepositoryArchive\": true,\n  \"disableGroupingGrid\": true,\n  \"dateFormat\": \"YYYY-MM-DD HH:mm:ss\",\n  \"anonymousAccessEnabled\": false,\n  \"adminGroups\": [ \"admin\", \"plebs\" ],\n  \"adminUsers\": [ \"trillian\", \"arthur\" ],\n  \"baseUrl\": \"http://localhost:8081/scm\",\n  \"forceBaseUrl\": true,\n  \"loginAttemptLimit\": 1,\n  \"proxyExcludes\": [ \"ex\", \"clude\" ],\n  \"skipFailedAuthenticators\": true,\n  \"pluginUrl\": \"url\",\n  \"loginAttemptLimitTimeout\": 0,\n  \"enabledXsrfProtection\": false\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-config+json\"</span> http://localhost:8081/scm/api/v2/config</code></pre></div>\n<h3 id=\"git-plugin-configuration\" style=\"position:relative;\"><a href=\"#git-plugin-configuration\" aria-label=\"git plugin configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Git Plugin Configuration</h3>\n<h4 id=\"get-7\" style=\"position:relative;\"><a href=\"#get-7\" aria-label=\"get 7 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/git\"</span></code></pre></div>\n<h4 id=\"put-5\" style=\"position:relative;\"><a href=\"#put-5\" aria-label=\"put 5 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"gcExpression\": \"0 0 14-6 ? * FRI-MON\",\n  \"repositoryDirectory\": \"new\",\n  \"disabled\": true\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-gitConfig+json\"</span> http://localhost:8081/scm/api/v2/config/git</code></pre></div>\n<h3 id=\"hg-plugin-configuration\" style=\"position:relative;\"><a href=\"#hg-plugin-configuration\" aria-label=\"hg plugin configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Hg Plugin Configuration</h3>\n<h4 id=\"get-8\" style=\"position:relative;\"><a href=\"#get-8\" aria-label=\"get 8 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg\"</span></code></pre></div>\n<h4 id=\"put-6\" style=\"position:relative;\"><a href=\"#put-6\" aria-label=\"put 6 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"repositoryDirectory\": \"new\",\n  \"disabled\": true,\n  \"encoding\": \"UTF-16\",\n  \"hgBinary\": \"/hg\",\n  \"pythonBinary\": \"python3\",\n  \"pythonPath\": \"gf\",\n  \"useOptimizedBytecode\": true,\n  \"showRevisionInId\": true\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-hgConfig+json\"</span> http://localhost:8081/scm/api/v2/config/hg</code></pre></div>\n<h4 id=\"auto-config\" style=\"position:relative;\"><a href=\"#auto-config\" aria-label=\"auto config permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Auto Config</h4>\n<h5 id=\"default\" style=\"position:relative;\"><a href=\"#default\" aria-label=\"default permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Default</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-v</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-u</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/auto-configuration\"</span></code></pre></div>\n<h5 id=\"specific-config\" style=\"position:relative;\"><a href=\"#specific-config\" aria-label=\"specific config permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Specific config</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-v</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-u</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"repositoryDirectory\": \"new\",\n  \"disabled\": true,\n  \"encoding\": \"UTF-16\",\n  \"hgBinary\": \"/hg\",\n  \"pythonBinary\": \"python3\",\n  \"pythonPath\": \"gf\",\n  \"useOptimizedBytecode\": true,\n  \"showRevisionInId\": true\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-hgConfig+json\"</span> <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/auto-configuration\"</span></code></pre></div>\n<h4 id=\"installations\" style=\"position:relative;\"><a href=\"#installations\" aria-label=\"installations permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Installations</h4>\n<h5 id=\"hg\" style=\"position:relative;\"><a href=\"#hg\" aria-label=\"hg permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Hg</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/installations/hg\"</span> </code></pre></div>\n<h5 id=\"python\" style=\"position:relative;\"><a href=\"#python\" aria-label=\"python permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Python</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/installations/python\"</span></code></pre></div>\n<h4 id=\"packages\" style=\"position:relative;\"><a href=\"#packages\" aria-label=\"packages permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Packages</h4>\n<h5 id=\"get-9\" style=\"position:relative;\"><a href=\"#get-9\" aria-label=\"get 9 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/packages\"</span></code></pre></div>\n<h5 id=\"put-7\" style=\"position:relative;\"><a href=\"#put-7\" aria-label=\"put 7 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h5>\n<p>See <a href=\"https://download.scm-manager.org/pkg/mercurial/packages.xml\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">here</a> for available packages. Will only work on Windows!</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/hg/packages/4338c4_x64\"</span> </code></pre></div>\n<h3 id=\"svn-plugin-configuration\" style=\"position:relative;\"><a href=\"#svn-plugin-configuration\" aria-label=\"svn plugin configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Svn Plugin Configuration</h3>\n<h4 id=\"get-10\" style=\"position:relative;\"><a href=\"#get-10\" aria-label=\"get 10 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/config/svn\"</span></code></pre></div>\n<h4 id=\"put-8\" style=\"position:relative;\"><a href=\"#put-8\" aria-label=\"put 8 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h4>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> PUT <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"repositoryDirectory\": \"new\",\n  \"disabled\": true,\n  \"enabledGZip\": true,\n  \"compatibility\": \"PRE15\"\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-svnConfig+json\"</span> http://localhost:8081/scm/api/v2/config/svn</code></pre></div>\n<h3 id=\"repository-types\" style=\"position:relative;\"><a href=\"#repository-types\" aria-label=\"repository types permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Repository Types</h3>\n<h4 id=\"get-11\" style=\"position:relative;\"><a href=\"#get-11\" aria-label=\"get 11 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<h5 id=\"collections-4\" style=\"position:relative;\"><a href=\"#collections-4\" aria-label=\"collections 4 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repository-types\"</span></code></pre></div>\n<h5 id=\"individual-4\" style=\"position:relative;\"><a href=\"#individual-4\" aria-label=\"individual 4 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repository-types/hg\"</span></code></pre></div>\n<h3 id=\"tags\" style=\"position:relative;\"><a href=\"#tags\" aria-label=\"tags permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Tags</h3>\n<h4 id=\"get-12\" style=\"position:relative;\"><a href=\"#get-12\" aria-label=\"get 12 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h4>\n<p>Pre-conditions: the git repository \"HeartOfGold-git\" exists and contains tags example v1.0 and v1.1</p>\n<h5 id=\"collections-5\" style=\"position:relative;\"><a href=\"#collections-5\" aria-label=\"collections 5 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Collections</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/HeartOfGold-git/tags/\"</span></code></pre></div>\n<h5 id=\"individual-5\" style=\"position:relative;\"><a href=\"#individual-5\" aria-label=\"individual 5 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Individual</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/HeartOfGold-git/tags/v1.1\"</span></code></pre></div>\n<h3 id=\"content\" style=\"position:relative;\"><a href=\"#content\" aria-label=\"content permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Content</h3>\n<h4 id=\"git\" style=\"position:relative;\"><a href=\"#git\" aria-label=\"git permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>git</h4>\n<h5 id=\"prepare\" style=\"position:relative;\"><a href=\"#prepare\" aria-label=\"prepare permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Prepare</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"a@con.tact\",\n  \"creationDate\": \"2018-07-11T08:54:44.569Z\",\n  \"description\": \"Desc\",\n  \"name\": \"arepo\",\n  \"type\": \"git\"\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories\n\n<span class=\"token builtin class-name\">cd</span> /tmp\n<span class=\"token function\">git</span> clone http://scmadmin:scmadmin@localhost:8081/scm/git/scmadmin/arepo\n<span class=\"token builtin class-name\">cd</span> arepo\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"aaaa\"</span> <span class=\"token operator\">></span> a\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"bbb\"</span> <span class=\"token operator\">></span> b.txt\n<span class=\"token function\">wget</span> https://bitbucket.org/sdorra/scm-manager/raw/f87655df229a94556aecf7d6b408ec0dcedb4e2a/scm-webapp/src/main/java/sonia/scm/api/RestActionResult.java\n<span class=\"token function\">git</span> <span class=\"token function\">add</span> <span class=\"token builtin class-name\">.</span>\n<span class=\"token function\">git</span> commit <span class=\"token parameter variable\">-m</span> <span class=\"token string\">'Msg'</span>\n<span class=\"token function\">git</span> push</code></pre></div>\n<h5 id=\"query-and-assert\" style=\"position:relative;\"><a href=\"#query-and-assert\" aria-label=\"query and assert permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query and assert</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Assert Content type text plain</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/b.txt\"</span>  <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span>   <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"bbb\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/b.txt\"</span>\n\n<span class=\"token comment\"># Assert Content type octet stream</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/a\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"aaa\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/a\"</span>\n\n<span class=\"token comment\"># Assert content type text/x-java-source &amp; Language Header JAVA</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/RestActionResult.java\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> <span class=\"token parameter variable\">-E</span> <span class=\"token string\">'Content-Type|Language'</span>\n<span class=\"token comment\"># Assert java file content</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/arepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">git</span> rev-parse HEAD<span class=\"token variable\">)</span></span>/RestActionResult.java\"</span></code></pre></div>\n<h4 id=\"hg-1\" style=\"position:relative;\"><a href=\"#hg-1\" aria-label=\"hg 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>hg</h4>\n<h5 id=\"prepare-1\" style=\"position:relative;\"><a href=\"#prepare-1\" aria-label=\"prepare 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Prepare</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"a@con.tact\",\n  \"creationDate\": \"2018-07-11T08:54:44.569Z\",\n  \"description\": \"Desc\",\n  \"name\": \"hgrepo\", \n  \"type\": \"hg\" \n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories\n\n<span class=\"token function\">hg</span> clone http://scmadmin:scmadmin@localhost:8081/scm/hg/scmadmin/hgrepo\n<span class=\"token builtin class-name\">cd</span> hgrepo\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"aaaa\"</span> <span class=\"token operator\">></span> a\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"bbb\"</span> <span class=\"token operator\">></span> b.txt\n<span class=\"token function\">wget</span> https://bitbucket.org/sdorra/scm-manager/raw/f87655df229a94556aecf7d6b408ec0dcedb4e2a/scm-webapp/src/main/java/sonia/scm/api/RestActionResult.java\n<span class=\"token function\">hg</span> <span class=\"token function\">add</span>\n<span class=\"token function\">hg</span> commit <span class=\"token parameter variable\">-m</span> <span class=\"token string\">'msg'</span>\n<span class=\"token function\">hg</span> push</code></pre></div>\n<h5 id=\"query-and-assert-1\" style=\"position:relative;\"><a href=\"#query-and-assert-1\" aria-label=\"query and assert 1 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query and assert</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Assert Content type text plain</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/b.txt\"</span>  <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span>   <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"bbb\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/b.txt\"</span>\n\n<span class=\"token comment\"># Assert Content type octet stream</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/a\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"aaa\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/a\"</span>\n\n<span class=\"token comment\"># Assert content type text/x-java-source &amp; Language Header JAVA</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/RestActionResult.java\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> <span class=\"token parameter variable\">-E</span> <span class=\"token string\">'Content-Type|Language'</span>\n<span class=\"token comment\"># Assert java file content</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/hgrepo/content/<span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">hg</span> identify <span class=\"token parameter variable\">--id</span><span class=\"token variable\">)</span></span>/RestActionResult.java\"</span></code></pre></div>\n<h4 id=\"svn\" style=\"position:relative;\"><a href=\"#svn\" aria-label=\"svn permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>svn</h4>\n<h5 id=\"prepare-2\" style=\"position:relative;\"><a href=\"#prepare-2\" aria-label=\"prepare 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Prepare</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"contact\": \"a@con.tact\",\n  \"creationDate\": \"2018-07-11T08:54:44.569Z\",\n  \"description\": \"Desc\",\n  \"name\": \"svnrepo\",\n  \"type\": \"svn\"\n }'</span> <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-repository+json\"</span> http://localhost:8081/scm/api/v2/repositories\n\nsvn co --non-interactive --no-auth-cache <span class=\"token parameter variable\">--username</span> scmadmin <span class=\"token parameter variable\">--password</span> scmadmin http://localhost:8081/scm/svn/scmadmin/svnrepo \n<span class=\"token builtin class-name\">cd</span> svnrepo\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"aaaa\"</span> <span class=\"token operator\">></span> a\n<span class=\"token builtin class-name\">echo</span> <span class=\"token string\">\"bbb\"</span> <span class=\"token operator\">></span> b.txt\n<span class=\"token function\">wget</span> https://bitbucket.org/sdorra/scm-manager/raw/f87655df229a94556aecf7d6b408ec0dcedb4e2a/scm-webapp/src/main/java/sonia/scm/api/RestActionResult.java\nsvn <span class=\"token function\">add</span> ./*\nsvn commit --non-interactive --no-auth-cache <span class=\"token parameter variable\">--username</span> scmadmin <span class=\"token parameter variable\">--password</span> scmadmin <span class=\"token parameter variable\">-m</span> <span class=\"token string\">'msg'</span></code></pre></div>\n<h5 id=\"query-and-assert-2\" style=\"position:relative;\"><a href=\"#query-and-assert-2\" aria-label=\"query and assert 2 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query and assert</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token assign-left variable\">REVISION</span><span class=\"token operator\">=</span><span class=\"token variable\"><span class=\"token variable\">$(</span>svn --non-interactive --no-auth-cache <span class=\"token parameter variable\">--username</span> scmadmin <span class=\"token parameter variable\">--password</span> scmadmin info <span class=\"token parameter variable\">-r</span> <span class=\"token string\">'HEAD'</span> --show-item revision <span class=\"token operator\">|</span> <span class=\"token function\">xargs</span> <span class=\"token builtin class-name\">echo</span> <span class=\"token parameter variable\">-n</span><span class=\"token variable\">)</span></span>\n<span class=\"token comment\"># Assert Content type text plain</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/b.txt\"</span>  <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span>   <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"bbb\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/b.txt\"</span>\n\n<span class=\"token comment\"># Assert Content type octet stream</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/a\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> Content-Type\n<span class=\"token comment\"># Assert file content \"aaa\"</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/a\"</span>\n\n<span class=\"token comment\"># Assert content type text/x-java-source &amp; Language Header JAVA</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-X</span> HEAD <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/RestActionResult.java\"</span> <span class=\"token operator\"><span class=\"token file-descriptor important\">2</span>></span><span class=\"token file-descriptor important\">&amp;1</span> <span class=\"token operator\">|</span> <span class=\"token function\">grep</span> <span class=\"token parameter variable\">-E</span> <span class=\"token string\">'Content-Type|Language'</span>\n<span class=\"token comment\"># Assert java file content</span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token string\">\"http://localhost:8081/scm/api/v2/repositories/scmadmin/svnrepo/content/<span class=\"token variable\">${REVISION}</span>/RestActionResult.java\"</span></code></pre></div>\n<h3 id=\"access-token\" style=\"position:relative;\"><a href=\"#access-token\" aria-label=\"access token permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Access Token</h3>\n<h4 id=\"admin\" style=\"position:relative;\"><a href=\"#admin\" aria-label=\"admin permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Admin</h4>\n<h5 id=\"output-all-links-of-index-resource\" style=\"position:relative;\"><a href=\"#output-all-links-of-index-resource\" aria-label=\"output all links of index resource permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Output all links of index resource</h5>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token assign-left variable\">TOKEN</span><span class=\"token operator\">=</span><span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> <span class=\"token string\">'http://localhost:8081/scm/api/v2/auth/access_token'</span> <span class=\"token parameter variable\">-H</span> <span class=\"token string\">'content-type: application/json'</span> <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"cookie\": false,\n  \"grant_type\": \"password\",\n  \"username\": \"scmadmin\",\n  \"password\": \"scmadmin\"\n}'</span><span class=\"token variable\">)</span></span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> http://localhost:8081/scm/api/v2/ <span class=\"token parameter variable\">-H</span> <span class=\"token string\">\"Authorization: Bearer <span class=\"token variable\">${TOKEN}</span>\"</span> <span class=\"token operator\">|</span> jq</code></pre></div>\n<h5 id=\"output-only-config-and-default-logged-in-links\" style=\"position:relative;\"><a href=\"#output-only-config-and-default-logged-in-links\" aria-label=\"output only config and default logged in links permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Output only \"config\" and default logged in links</h5>\n<p>default logged in links  = self, uiPlugins, me, logout</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token assign-left variable\">TOKEN</span><span class=\"token operator\">=</span><span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> <span class=\"token string\">'http://localhost:8081/scm/api/v2/auth/access_token'</span> <span class=\"token parameter variable\">-H</span> <span class=\"token string\">'content-type: application/json'</span> <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"cookie\": false,\n  \"grant_type\": \"password\",\n  \"username\": \"scmadmin\",\n  \"password\": \"scmadmin\",\n  \"scope\": [\n    \"configuration:*\"\n  ]\n}'</span><span class=\"token variable\">)</span></span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> http://localhost:8081/scm/api/v2/ <span class=\"token parameter variable\">-H</span> <span class=\"token string\">\"Authorization: Bearer <span class=\"token variable\">${TOKEN}</span>\"</span> <span class=\"token operator\">|</span> jq</code></pre></div>\n<h4 id=\"non-admin\" style=\"position:relative;\"><a href=\"#non-admin\" aria-label=\"non admin permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>non-Admin</h4>\n<p>Create non-admin user</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-vu</span> scmadmin:scmadmin <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"active\": true,\n  \"admin\": false,\n  \"displayName\": \"xyz\",\n  \"mail\": \"x@abcde.cd\",\n  \"name\": \"xyz\",\n  \"password\": \"pwd123\",\n  \"type\": \"xml\"\n  }'</span> <span class=\"token punctuation\">\\</span>\n   <span class=\"token parameter variable\">--header</span> <span class=\"token string\">\"Content-Type: application/vnd.scmm-user+json;v=2\"</span>  http://localhost:8081/scm/api/v2/users/</code></pre></div>\n<h5 id=\"standard-permissions-of-a-logged-in-user-without-additional-permissions\" style=\"position:relative;\"><a href=\"#standard-permissions-of-a-logged-in-user-without-additional-permissions\" aria-label=\"standard permissions of a logged in user without additional permissions permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Standard permissions of a logged in user without additional permissions</h5>\n<p>Standard links of a logged in user  = self, uiPlugins, me, logout, autocomplete, repositories</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token assign-left variable\">TOKEN</span><span class=\"token operator\">=</span><span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> <span class=\"token string\">'http://localhost:8081/scm/api/v2/auth/access_token'</span> <span class=\"token parameter variable\">-H</span> <span class=\"token string\">'content-type: application/json'</span> <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"cookie\": false,\n  \"grant_type\": \"password\",\n  \"username\": \"xyz\",\n  \"password\": \"pwd123\"\n}'</span><span class=\"token variable\">)</span></span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> http://localhost:8081/scm/api/v2/ <span class=\"token parameter variable\">-H</span> <span class=\"token string\">\"Authorization: Bearer <span class=\"token variable\">${TOKEN}</span>\"</span> <span class=\"token operator\">|</span> jq</code></pre></div>\n<h5 id=\"scope-requests-permission-the-user-doesnt-have\" style=\"position:relative;\"><a href=\"#scope-requests-permission-the-user-doesnt-have\" aria-label=\"scope requests permission the user doesnt have permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Scope requests permission the user doesn't have</h5>\n<p>This should not retrun <code class=\"language-text\">configuration</code> links, even though this scope was requested, because the user does not have the configuration permission. Otherwise this would be a major security flaw!\nCompare to admin tests above.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token assign-left variable\">TOKEN</span><span class=\"token operator\">=</span><span class=\"token variable\"><span class=\"token variable\">$(</span><span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> <span class=\"token string\">'http://localhost:8081/scm/api/v2/auth/access_token'</span> <span class=\"token parameter variable\">-H</span> <span class=\"token string\">'content-type: application/json'</span> <span class=\"token parameter variable\">--data</span> <span class=\"token string\">'{\n  \"cookie\": false,\n  \"grant_type\": \"password\",\n  \"username\": \"xyz\",\n  \"password\": \"pwd123\",\n  \"scope\": [\n    \"configuration:*\"\n  ]\n}'</span><span class=\"token variable\">)</span></span>\n<span class=\"token function\">curl</span> <span class=\"token parameter variable\">-s</span> http://localhost:8081/scm/api/v2/ <span class=\"token parameter variable\">-H</span> <span class=\"token string\">\"Authorization: Bearer <span class=\"token variable\">${TOKEN}</span>\"</span> <span class=\"token operator\">|</span> jq</code></pre></div>","description":"Describes the expected behaviour for SCMM v2 REST Resources using manual tests. The following states general test cases per HTTP Method and en expected return…","tableOfContents":"<ul>\n<li>\n<p><a href=\"#test-cases\">Test Cases</a></p>\n<ul>\n<li><a href=\"#get\">GET</a></li>\n<li><a href=\"#post\">POST</a></li>\n<li><a href=\"#put\">PUT</a></li>\n<li><a href=\"#delete\">DELETE</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#exemplary-calls--resource-specific-test-cases\">Exemplary calls &#x26; Resource specific test cases</a></p>\n<ul>\n<li>\n<p><a href=\"#users\">Users</a></p>\n<ul>\n<li>\n<p><a href=\"#get-1\">GET</a></p>\n<ul>\n<li><a href=\"#collections\">Collections</a></li>\n<li><a href=\"#individual\">Individual</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#post-1\">POST</a></p>\n</li>\n<li>\n<p><a href=\"#put-1\">PUT</a></p>\n</li>\n<li>\n<p><a href=\"#delete-1\">DELETE</a></p>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#groups\">Groups</a></p>\n<ul>\n<li>\n<p><a href=\"#get-2\">GET</a></p>\n<ul>\n<li><a href=\"#collections-1\">Collections</a></li>\n<li><a href=\"#individual-1\">Individual</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#post-2\">POST</a></p>\n</li>\n<li>\n<p><a href=\"#put-2\">PUT</a></p>\n</li>\n<li>\n<p><a href=\"#delete-2\">DELETE</a></p>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#repositories\">Repositories</a></p>\n<ul>\n<li>\n<p><a href=\"#get-3\">GET</a></p>\n<ul>\n<li><a href=\"#collections-2\">Collections</a></li>\n<li><a href=\"#individual-2\">Individual</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#post-3\">POST</a></p>\n</li>\n<li>\n<p><a href=\"#put-3\">PUT</a></p>\n</li>\n<li>\n<p><a href=\"#delete-3\">DELETE</a></p>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#repository-permissions\">Repository Permissions</a></p>\n<ul>\n<li><a href=\"#prerequisites\">Prerequisites</a></li>\n<li><a href=\"#get-4\">GET</a></li>\n<li><a href=\"#post--read-permission\">POST / READ permission</a></li>\n<li><a href=\"#put--write-permission\">PUT / WRITE permission</a></li>\n<li><a href=\"#owner-permission\">OWNER permission</a></li>\n<li><a href=\"#delete-4\">DELETE</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#branches\">Branches</a></p>\n<ul>\n<li>\n<p><a href=\"#get-5\">GET</a></p>\n<ul>\n<li><a href=\"#collections-3\">Collections</a></li>\n<li><a href=\"#individual-3\">Individual</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#configuration\">Configuration</a></p>\n<ul>\n<li><a href=\"#get-6\">GET</a></li>\n<li><a href=\"#put-4\">PUT</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#git-plugin-configuration\">Git Plugin Configuration</a></p>\n<ul>\n<li><a href=\"#get-7\">GET</a></li>\n<li><a href=\"#put-5\">PUT</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#hg-plugin-configuration\">Hg Plugin Configuration</a></p>\n<ul>\n<li>\n<p><a href=\"#get-8\">GET</a></p>\n</li>\n<li>\n<p><a href=\"#put-6\">PUT</a></p>\n</li>\n<li>\n<p><a href=\"#auto-config\">Auto Config</a></p>\n<ul>\n<li><a href=\"#default\">Default</a></li>\n<li><a href=\"#specific-config\">Specific config</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#installations\">Installations</a></p>\n<ul>\n<li><a href=\"#hg\">Hg</a></li>\n<li><a href=\"#python\">Python</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#packages\">Packages</a></p>\n<ul>\n<li><a href=\"#get-9\">GET</a></li>\n<li><a href=\"#put-7\">PUT</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#svn-plugin-configuration\">Svn Plugin Configuration</a></p>\n<ul>\n<li><a href=\"#get-10\">GET</a></li>\n<li><a href=\"#put-8\">PUT</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#repository-types\">Repository Types</a></p>\n<ul>\n<li>\n<p><a href=\"#get-11\">GET</a></p>\n<ul>\n<li><a href=\"#collections-4\">Collections</a></li>\n<li><a href=\"#individual-4\">Individual</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#tags\">Tags</a></p>\n<ul>\n<li>\n<p><a href=\"#get-12\">GET</a></p>\n<ul>\n<li><a href=\"#collections-5\">Collections</a></li>\n<li><a href=\"#individual-5\">Individual</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#content\">Content</a></p>\n<ul>\n<li>\n<p><a href=\"#git\">git</a></p>\n<ul>\n<li><a href=\"#prepare\">Prepare</a></li>\n<li><a href=\"#query-and-assert\">Query and assert</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#hg-1\">hg</a></p>\n<ul>\n<li><a href=\"#prepare-1\">Prepare</a></li>\n<li><a href=\"#query-and-assert-1\">Query and assert</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#svn\">svn</a></p>\n<ul>\n<li><a href=\"#prepare-2\">Prepare</a></li>\n<li><a href=\"#query-and-assert-2\">Query and assert</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>\n<p><a href=\"#access-token\">Access Token</a></p>\n<ul>\n<li>\n<p><a href=\"#admin\">Admin</a></p>\n<ul>\n<li><a href=\"#output-all-links-of-index-resource\">Output all links of index resource</a></li>\n<li><a href=\"#output-only-config-and-default-logged-in-links\">Output only \"config\" and default logged in links</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#non-admin\">non-Admin</a></p>\n<ul>\n<li><a href=\"#standard-permissions-of-a-logged-in-user-without-additional-permissions\">Standard permissions of a logged in user without additional permissions</a></li>\n<li><a href=\"#scope-requests-permission-the-user-doesnt-have\">Scope requests permission the user doesn't have</a></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>","frontmatter":{"title":"SCM-Manager v2 Test Cases","subtitle":null,"displayToc":null,"description":null,"keywords":null,"image":null}}},"pageContext":{"slug":"/docs/3.12.x/en/test-cases/","version":"3.12.x","latestVersion":"3.12.x","latestPageVersion":"3.12.x","language":"en","relativePath":"/test-cases/","canonicalPath":"/docs/latest/en/test-cases/","latestRootPath":"/docs/3.12.x/en/"}},
    "staticQueryHashes": ["1973669194","2742214048","2956773653","2957019495","698804963"]}