ReleaseEngineering/Applications/Mapper: Difference between revisions

Updated links from staging -> production
m (markup fix)
(Updated links from staging -> production)
Line 21: Line 21:


= Source =
= Source =
mapper's source is currently hosted at https://github.com/petemoore/mapper
mapper's source is currently hosted at https://github.com/mozilla/build-mapper
 
This will be moving as soon as it is ready to go to production. Currently it is in staging (see [https://bugzilla.mozilla.org/show_bug.cgi?id=847640 bug 847640])


= 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-pub-build.allizom.org/mapper/build-puppet/rev/git/69d64a8a18e6e001eb015646a82bcdaba0e78a24
* Example: https://api.pub.build.mozilla.org/mapper/build-puppet/rev/git/69d64a8a18e6e001eb015646a82bcdaba0e78a24
* Example: https://api-pub-build.allizom.org/mapper/build-puppet/rev/hg/68f1b2b9996c4e33aa57771b3478932c9fb7e161
* 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-pub-build.allizom.org/mapper/build-puppet/mapfile/full
* 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-pub-build.allizom.org/mapper/build-mozharness/mapfile/since/29.05.2014%2017:02:09%20CEST
* 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-pub-build.allizom.org/mapper/insert
* 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-pub-build.allizom.org/mapper/insert/ignoredups
* 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-pub-build.allizom.org/mapper/insert/69d64a8a18e6e001eb015646a82bcdaba0e78a24/68f1b2b9996c4e33aa57771b3478932c9fb7e161
* 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-pub-build.allizom.org/mapper/build-puppet
* Example: https://api.pub.build.mozilla.org/mapper/build-puppet
 
= Staging =
 
The staging environment is available under https://api-pub-build.allizom.org/mapper
Confirmed users
142

edits