live_help Notes

chrome_reader_mode This resource is paginated by 30 items

settings Params

Param name Description
sort optional . Must be one of: id, user_id, content, version, created_at, updated_at, released.

The sort field. Sorted by id desc by default.

Example:

To sort on changelogs on the fields updated_at on a descending order and released on a ascending order:

...&sort=-updated_at,released

filter optional . Must be one of: id, user_id, content, version, created_at, updated_at, released.

Filtering on one or more fields

Example:

To filter on changelogs with the id field matching a_value or another_value:

...&filter[id]=a_value,another_value

Filterable fields:
  • id (standard field)
  • user_id (standard field)
  • content (standard field)
  • version (standard field)
  • created_at (standard field)
  • updated_at (standard field)
  • released (standard field)
range optional . Must be one of: id, user_id, content, version, created_at, updated_at, released.

Select on a particular range

Example:

To range on changelogs with the released field between min_value and max_value:

...&range[released]=min_value,max_value

Rangeable fields:
  • id
  • user_id
  • content
  • version
  • created_at
  • updated_at
  • released
page optional . Must be a Hash

The pagination params, as a hash

page[number] optional . Must be Fixnum

The current page

page[size] optional . Must be Fixnum

The number of items per page, defaults to 30, maximum 100

comments powered by <span class='logo-disqus'>Disqus</span>
GET /v2/changelogs
200
[
  {
    "id": 14,
    "content": "#### Opening meta.intrav2.42.fr\r\nThis submodule will contain all \"intra related\" content. It includes :\r\n- The new ticket system. This will replace the old ticket platform on dashboard.42.fr, and will be accessible on [https://meta.intrav2.42.fr/issues](https://meta.intrav2.42.fr/issues).\r\n- A changelog history, to keep people updated with the new features and bug fixes.\r\n- The bug report system.\r\n\r\n#### Adding responsive support\r\n- Still in development, tested on chrome with large screens (>= 360 px).\r\n\r\n#### Other\r\n- The left panel is now hidden on small screens only, and remain open for others.\r\n- The Meta icon replace the bug report icon in the main left menu. Bug reports are now available in Meta only.",
    "version": "1.1.0",
    "created_at": "2017-03-06T14:59:02.289Z",
    "updated_at": "2017-03-06T14:59:02.289Z",
    "released": true,
    "user": {}
  },
  {
    "id": 13,
    "content": "#### Forum\r\n- New rendering engine, [see this post](https://forum.intrav2.42.fr/topics/1535/messages) for more information.",
    "version": "1.2.2",
    "created_at": "2017-03-06T14:59:02.281Z",
    "updated_at": "2017-03-06T14:59:02.281Z",
    "released": true,
    "user": {}
  },
  {
    "id": 12,
    "content": "#### Design updates\r\n- The design has been changed on a few points by our fantastic Émilie and introduces new icons and some minor changes on pages likes the home page or the projects page.\r\n\r\n#### Projects\r\n- More detailed stats and informations on a project page, like the number of users currently registered.\r\n- Explicit status \"failed\" ou \"succeeded\" (if available) after the project name in `/projects` for color blind students.\r\n\r\n#### Profile\r\n- More readable phone format",
    "version": "1.1.6",
    "created_at": "2017-03-06T14:59:02.274Z",
    "updated_at": "2017-03-06T14:59:02.274Z",
    "released": true,
    "user": {}
  }
]
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/changelogs"

[
  {
    "id": 14,
    "content": "#### Opening meta.intrav2.42.fr\r\nThis submodule will contain all \"intra related\" content. It includes :\r\n- The new ticket system. This will replace the old ticket platform on dashboard.42.fr, and will be accessible on [https://meta.intrav2.42.fr/issues](https://meta.intrav2.42.fr/issues).\r\n- A changelog history, to keep people updated with the new features and bug fixes.\r\n- The bug report system.\r\n\r\n#### Adding responsive support\r\n- Still in development, tested on chrome with large screens (>= 360 px).\r\n\r\n#### Other\r\n- The left panel is now hidden on small screens only, and remain open for others.\r\n- The Meta icon replace the bug report icon in the main left menu. Bug reports are now available in Meta only.",
    "version": "1.1.0",
    "created_at": "2017-03-06T14:59:02.289Z",
    "updated_at": "2017-03-06T14:59:02.289Z",
    "released": true,
    "user": {}
  },
  {
    "id": 13,
    "content": "#### Forum\r\n- New rendering engine, [see this post](https://forum.intrav2.42.fr/topics/1535/messages) for more information.",
    "version": "1.2.2",
    "created_at": "2017-03-06T14:59:02.281Z",
    "updated_at": "2017-03-06T14:59:02.281Z",
    "released": true,
    "user": {}
  },
  {
    "id": 12,
    "content": "#### Design updates\r\n- The design has been changed on a few points by our fantastic Émilie and introduces new icons and some minor changes on pages likes the home page or the projects page.\r\n\r\n#### Projects\r\n- More detailed stats and informations on a project page, like the number of users currently registered.\r\n- Explicit status \"failed\" ou \"succeeded\" (if available) after the project name in `/projects` for color blind students.\r\n\r\n#### Profile\r\n- More readable phone format",
    "version": "1.1.6",
    "created_at": "2017-03-06T14:59:02.274Z",
    "updated_at": "2017-03-06T14:59:02.274Z",
    "released": true,
    "user": {}
  }
]
require "oauth2"
UID = "Your application uid"
SECRET = "Your application secret"
client = OAuth2::Client.new(UID, SECRET, site: "https://api.intra.42.fr")
token = client.client_credentials.get_token

response = token.get("/v2/changelogs")
response.status
# => 200
response.parsed
# => [{"id"=>14, "content"=>"#### Opening meta.intrav2.42.fr\r\nThis submodule will contain all \"intra related\" content. It includes :\r\n- The new ticket system. This will replace the old ticket platform on dashboard.42.fr, and will be accessible on [https://meta.intrav2.42.fr/issues](https://meta.intrav2.42.fr/issues).\r\n- A changelog history, to keep people updated with the new features and bug fixes.\r\n- The bug report system.\r\n\r\n#### Adding responsive support\r\n- Still in development, tested on chrome with large screens (>= 360 px).\r\n\r\n#### Other\r\n- The left panel is now hidden on small screens only, and remain open for others.\r\n- The Meta icon replace the bug report icon in the main left menu. Bug reports are now available in Meta only.", "version"=>"1.1.0", "created_at"=>"2017-03-06T14:59:02.289Z", "updated_at"=>"2017-03-06T14:59:02.289Z", "released"=>true, "user"=>{}}, {"id"=>13, "content"=>"#### Forum\r\n- New rendering engine, [see this post](https://forum.intrav2.42.fr/topics/1535/messages) for more information.", "version"=>"1.2.2", "created_at"=>"2017-03-06T14:59:02.281Z", "updated_at"=>"2017-03-06T14:59:02.281Z", "released"=>true, "user"=>{}}, {"id"=>12, "content"=>"#### Design updates\r\n- The design has been changed on a few points by our fantastic Émilie and introduces new icons and some minor changes on pages likes the home page or the projects page.\r\n\r\n#### Projects\r\n- More detailed stats and informations on a project page, like the number of users currently registered.\r\n- Explicit status \"failed\" ou \"succeeded\" (if available) after the project name in `/projects` for color blind students.\r\n\r\n#### Profile\r\n- More readable phone format", "version"=>"1.1.6", "created_at"=>"2017-03-06T14:59:02.274Z", "updated_at"=>"2017-03-06T14:59:02.274Z", "released"=>true, "user"=>{}}]