On liste les articles que notre visibilité nous permet de voir:
/api/v1/articles/ :
[
{
"id": "462fc900-298c-11e9-8913-a39955dfaf84",
"title": "Picasoft recrute !",
"description": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de...",
On tape ensuite sur /api/v1/articles/462fc900-298c-11e9-8913-a39955dfaf84, le résultat est cohérent:
{
"id": "462fc900-298c-11e9-8913-a39955dfaf84",
"title": "Picasoft recrute !",
"description": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de...",
"content": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton
Ensuite, on demande les commentaires : /api/v1/articles/462fc900-298c-11e9-8913-a39955dfaf84/comments et on tombe sur une 400 bad request :
{
"message": "Method Illuminate\\Database\\Query\\Builder::isLogged does not exist.",
"exception": "BadMethodCallException",
"trace": [
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Builder.php",
"line": 1286,
"function": "__call",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->",
"args": [
"isLogged",
[]
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Eloquent\/Model.php",
"line": 1570,
"function": "__call",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->",
"args": [
"isLogged",
[]
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Models\/Article.php",
"line": 214,
"function": "__call",
"class": "Illuminate\\Database\\Eloquent\\Model",
"type": "->",
"args": [
"isLogged",
[]
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Controllers\/v1\/Comment\/CommentController.php",
"line": 60,
"function": "isCommentAccessibleBy",
"class": "App\\Models\\Article",
"type": "->",
"args": [
"18215f60-2991-11e9-b576-13a3193beb53"
]
},
{
"function": "index",
"class": "App\\Http\\Controllers\\v1\\Comment\\CommentController",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {},
"resource": {
"id": "462fc900-298c-11e9-8913-a39955dfaf84",
"title": "Picasoft recrute !",
"description": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de...",
"content": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de l'informatique, que les termes logiciels libres, GAFAM, décentralisation d'Internet vous parlent ou interpellent, envoyez-nous un email à picasoft@assos.utc.fr , ou venez nous dire bonjour mercredi 9 janvier à 19h00 dans la salle de réunion du 1er étage de la MDE, on recherche des gens motivés ! Les principaux postes à pourvoir sont ceux de trésorièr·re et secrétaire, mais toute aide est la bienvenue !\r\n\r\n\r\nBon courage à tous pour vos projets et finaux, on attend vos mails \/ votre présence avec impatience ! ",
"image": "https:\/\/portail.nastuzzi.fr\/images\/articles\/462fc900-298c-11e9-8913-a39955dfaf84\/1549401807.png",
"created_at": "2019-01-03 21:49:26",
"updated_at": "2019-01-03 21:49:26",
"created_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"owned_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"tags": [
{
"id": "be809220-2794-11e9-a29b-2daf7987f463",
"name": "old-portail",
"description": "Article de l'ancien Portail",
"created_at": "2019-02-03 10:19:01",
"updated_at": "2019-02-03 10:19:01",
"pivot": {
"used_by_id": "462fc900-298c-11e9-8913-a39955dfaf84",
"tag_id": "be809220-2794-11e9-a29b-2daf7987f463",
"used_by_type": "App\\Models\\Article",
"created_at": "2019-02-05 22:23:27",
"updated_at": "2019-02-05 22:23:27"
}
}
],
"visibility": {
"id": "ddc22260-2793-11e9-aa7b-9dccf088963a",
"type": "logged",
"name": "Toute personne connectée",
"parent_id": "ddc077a0-2793-11e9-bdcf-774e5e4130b9",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
},
"event": null
}
},
"articles",
"462fc900-298c-11e9-8913-a39955dfaf84"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
"line": 54,
"function": "call_user_func_array",
"args": [
[
{},
"index"
],
{
"0": {
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {},
"resource": {
"id": "462fc900-298c-11e9-8913-a39955dfaf84",
"title": "Picasoft recrute !",
"description": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de...",
"content": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de l'informatique, que les termes logiciels libres, GAFAM, décentralisation d'Internet vous parlent ou interpellent, envoyez-nous un email à picasoft@assos.utc.fr , ou venez nous dire bonjour mercredi 9 janvier à 19h00 dans la salle de réunion du 1er étage de la MDE, on recherche des gens motivés ! Les principaux postes à pourvoir sont ceux de trésorièr·re et secrétaire, mais toute aide est la bienvenue !\r\n\r\n\r\nBon courage à tous pour vos projets et finaux, on attend vos mails \/ votre présence avec impatience ! ",
"image": "https:\/\/portail.nastuzzi.fr\/images\/articles\/462fc900-298c-11e9-8913-a39955dfaf84\/1549401807.png",
"created_at": "2019-01-03 21:49:26",
"updated_at": "2019-01-03 21:49:26",
"created_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"owned_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"tags": [
{
"id": "be809220-2794-11e9-a29b-2daf7987f463",
"name": "old-portail",
"description": "Article de l'ancien Portail",
"created_at": "2019-02-03 10:19:01",
"updated_at": "2019-02-03 10:19:01",
"pivot": {
"used_by_id": "462fc900-298c-11e9-8913-a39955dfaf84",
"tag_id": "be809220-2794-11e9-a29b-2daf7987f463",
"used_by_type": "App\\Models\\Article",
"created_at": "2019-02-05 22:23:27",
"updated_at": "2019-02-05 22:23:27"
}
}
],
"visibility": {
"id": "ddc22260-2793-11e9-aa7b-9dccf088963a",
"type": "logged",
"name": "Toute personne connectée",
"parent_id": "ddc077a0-2793-11e9-bdcf-774e5e4130b9",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
},
"event": null
}
},
"resource_type": "articles",
"resource_id": "462fc900-298c-11e9-8913-a39955dfaf84"
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
"line": 45,
"function": "callAction",
"class": "Illuminate\\Routing\\Controller",
"type": "->",
"args": [
"index",
{
"0": {
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {},
"resource": {
"id": "462fc900-298c-11e9-8913-a39955dfaf84",
"title": "Picasoft recrute !",
"description": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de...",
"content": "[Picasoft recrute !][Mais qu'est ce que Picasoft ?] [AGO Mercredi 9 janvier]\r\n\r\nBonjour à tous ! \r\n\r\nPicasoft, le chaton libriste recrute ! Si vous êtes intéressé·es par le respect de la vie privée et de la liberté d'expression dans le domaine de l'informatique, que les termes logiciels libres, GAFAM, décentralisation d'Internet vous parlent ou interpellent, envoyez-nous un email à picasoft@assos.utc.fr , ou venez nous dire bonjour mercredi 9 janvier à 19h00 dans la salle de réunion du 1er étage de la MDE, on recherche des gens motivés ! Les principaux postes à pourvoir sont ceux de trésorièr·re et secrétaire, mais toute aide est la bienvenue !\r\n\r\n\r\nBon courage à tous pour vos projets et finaux, on attend vos mails \/ votre présence avec impatience ! ",
"image": "https:\/\/portail.nastuzzi.fr\/images\/articles\/462fc900-298c-11e9-8913-a39955dfaf84\/1549401807.png",
"created_at": "2019-01-03 21:49:26",
"updated_at": "2019-01-03 21:49:26",
"created_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"owned_by": {
"id": "5c5f5200-298b-11e9-b1f0-a5d9785b91fc",
"login": "picasoft",
"shortname": "Picasoft",
"name": "Degooglisons l'UTC !",
"image": "https:\/\/portail.nastuzzi.fr\/images\/assos\/5c5f5200-298b-11e9-b1f0-a5d9785b91fc\/1549401414.png",
"description": "T'as déjà entendu parler de \"neutralité du net\", \"dégooglisons internet\" ou \"logiciels libres\" ? Picasoft c'est une asso toute nouvelle qui à pour objectif de sensibiliser autour de ces thématiques et de proposer des solutions aux question qu'elles soulèvent !\r\n- Pôle technique: nous proposons déjà 2 services libres, éthiques et décentralisés (team.picasoft.net et pad.picasoft.net) et nous avons besoin de ton aide pour en déployer plus ! Tu n'as pas besoin d’expérience, et tu pourras acquérir des connaissances précieuses pour la suite de ton parcours, mais tu pourras surtout t'investir dans un projet concret et utile à tous.\r\n- Pôle sensibilisation\/formation: une journée Picasoft par semestre (conférences, ateliers), de la veille en ligne et plein d'ateliers tout au long du semestre pour apprendre à utiliser Linux, à chiffrer ses mails... Initié ou non, t'apprendras énormément avec des gens passionnés et tu pourras même proposer tes propres ateliers !",
"created_at": "2018-11-24 15:55:23",
"updated_at": "2018-11-24 15:55:23",
"deleted_at": null,
"type": {
"id": "ddbca050-2793-11e9-baa9-2b9d24bc4056",
"type": "1901",
"name": "Association loi 1901",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
}
},
"tags": [
{
"id": "be809220-2794-11e9-a29b-2daf7987f463",
"name": "old-portail",
"description": "Article de l'ancien Portail",
"created_at": "2019-02-03 10:19:01",
"updated_at": "2019-02-03 10:19:01",
"pivot": {
"used_by_id": "462fc900-298c-11e9-8913-a39955dfaf84",
"tag_id": "be809220-2794-11e9-a29b-2daf7987f463",
"used_by_type": "App\\Models\\Article",
"created_at": "2019-02-05 22:23:27",
"updated_at": "2019-02-05 22:23:27"
}
}
],
"visibility": {
"id": "ddc22260-2793-11e9-aa7b-9dccf088963a",
"type": "logged",
"name": "Toute personne connectée",
"parent_id": "ddc077a0-2793-11e9-bdcf-774e5e4130b9",
"created_at": "2019-02-03 10:12:44",
"updated_at": "2019-02-03 10:12:44"
},
"event": null
}
},
"resource_type": "articles",
"resource_id": "462fc900-298c-11e9-8913-a39955dfaf84"
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line": 212,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->",
"args": [
{
"uri": "api\/v1\/{resource_type}\/{resource_id}\/comments",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"forceJson",
"betaVersion:v1",
"user:active"
],
"as": "comments.index",
"uses": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"controller": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"namespace": "App\\Http\\Controllers\\v1",
"prefix": "api\/v1\/{resource_type}\/{resource_id}",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": {
"resource_type": "articles",
"resource_id": "462fc900-298c-11e9-8913-a39955dfaf84"
},
"parameterNames": [
"resource_type",
"resource_id"
],
"computedMiddleware": [
"forceJson",
"betaVersion:v1",
"user:active",
"auth.any:1,user-get-comments-articles|user-get-comments-comments,client-get-comments-articles|client-get-comments-comments",
"auth.check"
],
"compiled": {}
},
{},
"index"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line": 169,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->",
"args": []
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line": 665,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->",
"args": []
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 30,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/CheckAuth.php",
"line": 48,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "App\\Http\\Middleware\\CheckAuth",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/CheckUser.php",
"line": 58,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
"line": 43,
"function": "App\\Http\\Middleware\\{closure}",
"class": "App\\Http\\Middleware\\CheckUser",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/CheckUser.php",
"line": 59,
"function": "handle",
"class": "Illuminate\\Auth\\Middleware\\Authenticate",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{},
"api"
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/CheckAny.php",
"line": 44,
"function": "handle",
"class": "App\\Http\\Middleware\\CheckUser",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{},
"1",
"user-get-comments-articles|user-get-comments-comments"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "App\\Http\\Middleware\\CheckAny",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{},
"1",
"user-get-comments-articles|user-get-comments-comments",
"client-get-comments-articles|client-get-comments-comments"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/UserIs.php",
"line": 57,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "App\\Http\\Middleware\\UserIs",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{},
"active"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/BetaVersion.php",
"line": 28,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "App\\Http\\Middleware\\BetaVersion",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{},
"v1"
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/app\/Http\/Middleware\/ForceJson.php",
"line": 30,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "App\\Http\\Middleware\\ForceJson",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 104,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line": 667,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line": 642,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"uri": "api\/v1\/{resource_type}\/{resource_id}\/comments",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"forceJson",
"betaVersion:v1",
"user:active"
],
"as": "comments.index",
"uses": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"controller": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"namespace": "App\\Http\\Controllers\\v1",
"prefix": "api\/v1\/{resource_type}\/{resource_id}",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": {
"resource_type": "articles",
"resource_id": "462fc900-298c-11e9-8913-a39955dfaf84"
},
"parameterNames": [
"resource_type",
"resource_id"
],
"computedMiddleware": [
"forceJson",
"betaVersion:v1",
"user:active",
"auth.any:1,user-get-comments-articles|user-get-comments-comments,client-get-comments-articles|client-get-comments-comments",
"auth.check"
],
"compiled": {}
},
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line": 608,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{
"uri": "api\/v1\/{resource_type}\/{resource_id}\/comments",
"methods": [
"GET",
"HEAD"
],
"action": {
"middleware": [
"forceJson",
"betaVersion:v1",
"user:active"
],
"as": "comments.index",
"uses": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"controller": "App\\Http\\Controllers\\v1\\Comment\\CommentController@index",
"namespace": "App\\Http\\Controllers\\v1",
"prefix": "api\/v1\/{resource_type}\/{resource_id}",
"where": []
},
"isFallback": false,
"controller": {},
"defaults": [],
"wheres": [],
"parameters": {
"resource_type": "articles",
"resource_id": "462fc900-298c-11e9-8913-a39955dfaf84"
},
"parameterNames": [
"resource_type",
"resource_id"
],
"computedMiddleware": [
"forceJson",
"betaVersion:v1",
"user:active",
"auth.any:1,user-get-comments-articles|user-get-comments-comments,client-get-comments-articles|client-get-comments-comments",
"auth.check"
],
"compiled": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line": 597,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line": 176,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 30,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/fideloper\/proxy\/src\/TrustProxies.php",
"line": 57,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "Fideloper\\Proxy\\TrustProxies",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line": 31,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line": 31,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/CheckForMaintenanceMode.php",
"line": 62,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 151,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
},
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line": 53,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line": 104,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Pipeline",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line": 151,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->",
"args": [
{}
]
},
{
"file": "\/var\/www\/portail\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line": 116,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
},
{
"file": "\/var\/www\/portail\/html\/public\/index.php",
"line": 55,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->",
"args": [
{
"attributes": {},
"request": {},
"query": {},
"server": {},
"files": {},
"cookies": {},
"headers": {}
}
]
}
]
}
On liste les articles que notre visibilité nous permet de voir:
/api/v1/articles/
:On tape ensuite sur
/api/v1/articles/462fc900-298c-11e9-8913-a39955dfaf84
, le résultat est cohérent:Ensuite, on demande les commentaires :
/api/v1/articles/462fc900-298c-11e9-8913-a39955dfaf84/comments
et on tombe sur une 400 bad request :