Confirmed users
142
edits
m (markup fix) |
(Updated links from staging -> production) |
||
Line 21: | Line 21: | ||
= Source = | = Source = | ||
mapper's source is currently hosted at https://github.com/ | mapper's source is currently hosted at https://github.com/mozilla/build-mapper | ||
= Old Mapper Deployment = | = Old Mapper Deployment = | ||
Line 71: | Line 69: | ||
=== Returns a mapping pair === | === Returns a mapping pair === | ||
* GET: /<project>/rev/<vcs_type>/<commit> | * GET: /<project>/rev/<vcs_type>/<commit> | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/build-puppet/rev/git/69d64a8a18e6e001eb015646a82bcdaba0e78a24 | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/build-puppet/rev/hg/68f1b2b9996c4e33aa57771b3478932c9fb7e161 | ||
=== Returns full mapfile for a given project === | === Returns full mapfile for a given project === | ||
* GET: /<project>/mapfile/full | * GET: /<project>/mapfile/full | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/build-puppet/mapfile/full | ||
=== Returns a subset of a mapfile, since a given date === | === Returns a subset of a mapfile, since a given date === | ||
* GET: /<project>/mapfile/since/<since> | * GET: /<project>/mapfile/since/<since> | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/build-mozharness/mapfile/since/29.05.2014%2017:02:09%20CEST | ||
== POST Routes == | == POST Routes == | ||
Line 86: | Line 84: | ||
=== Inserts a mappings file strictly (no duplicates allowed) === | === Inserts a mappings file strictly (no duplicates allowed) === | ||
* POST: /<project>/insert | * POST: /<project>/insert | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/insert | ||
=== Inserts a mappings file, allowing duplicates === | === Inserts a mappings file, allowing duplicates === | ||
* POST: /<project>/insert/ignoredups | * POST: /<project>/insert/ignoredups | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/insert/ignoredups | ||
=== Inserts an individual mapping === | === Inserts an individual mapping === | ||
* POST: /<project>/insert/<git_commit>/<hg_changeset> | * POST: /<project>/insert/<git_commit>/<hg_changeset> | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/insert/69d64a8a18e6e001eb015646a82bcdaba0e78a24/68f1b2b9996c4e33aa57771b3478932c9fb7e161 | ||
=== Inserts a new project === | === Inserts a new project === | ||
* POST: /<project> | * POST: /<project> | ||
* Example: https://api | * Example: https://api.pub.build.mozilla.org/mapper/build-puppet | ||
= Staging = | |||
The staging environment is available under https://api-pub-build.allizom.org/mapper |