Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • E ErrorNot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • ErrorNot
  • Wiki
  • API informations

API informations · Changes

Page history
Migrated from api-informations v1 authored Sep 13, 2010 by shingara's avatar shingara
Hide whitespace changes
Inline Side-by-side
Showing with 57 additions and 0 deletions
+57 -0
  • API-informations.textile API-informations.textile +57 -0
  • No files found.
API-informations.textile 0 → 100644
View page @ 103cf864
All errors are made by a POST request. This request made on url : /errors/
h2. Parameters
To this url you can define this parameters :
* 'api-key'
* 'version'
* 'error'
** 'message'
** 'raised_at'
** 'backtrace'
** 'request'
** 'environment'
** 'data'
h2. Mandatory
Are mandatory only :
* 'raised_at'
* 'message'
h2. Format
All data are String, but can be Array or Hash too. The list of format are :
* 'api-key' => STRING, the api-key of project
* 'version' => STRING, actually 0.1.0 but can change in future.
* 'error' => HASH, it's an hash with all information about error raised, all keys are define like after
** 'raised_at' => STRING, date with error is raised in application, use UTC date
** 'backtrace' => Array, it's a list of string where each string is a line of backtrace
** 'request' => Hash, All information about request
** 'environment' => Hash, All information about environment where error raised
** 'data' => Hash, What you want.
h2. Exemple of Hash send by POST
bc. {'api_key' => api_key,
'version' => '0.1.0',
'error' => {'message' => /\w+/.gen,
'raised_at' => hash.key?(:raised_at) ? hash[:raised_at] : 2.days.ago,
'backtrace' => 3.of { /\w+ \w+ \w+/.gen },
'request' => {
'rails_root' => '/path/to/project',
'url' => 'http://localhost/failure?id=123',
'params' => {
'action' => 'index',
'id' => '123',
'controller' => 'groups'}},
'environment' => {
'SERVER_NAME' => 'localhost',
'HTTP_ACCEPT_ENCODING' => 'gzip,deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0',
'PATH_INFO' => '/',
'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5',
'HTTP_HOST' => 'localhost'},
'data' => {}}}
Clone repository
  • API informations
  • Home