As one of the top food destinations in the world, there’s no shortage of famous restaurants in Paris.
From historic addresses to those made famous by celebrity diners, here we round up some of the most iconic Paris restaurants that are actually worth a visit.
});
`#### Create a media
`javascript
const mediaCreationResponse = await strapiClient.addMediaAsset('https://assets2.devourtours.com/wp-content/uploads/famous-restaurants-in-paris-1.png', 'Some of the most famous restaurants in Paris have gotten quite touristy and aren\'t really worth your time. Here are five that fortunately manage to stay authentic in the face of mass tourism.', 'Photo Credit: Hirama for Tour d’Argent');
`#### Create a media folder
Requires
adminToken.`javascript
const mediaFolderCreationResponse = await strapiClient.createMediaFolder('Famous restaurants');
`#### Move media to a folder
Requires
adminToken.`javascript
await strapiClient.moveMedia(mediaFolderCreationResponse.data.id, [mediaCreationResponse[0].id]);
`#### Update an entry
`javascript
await strapiClient.updateEntry('articles', creationResponse.data.id, {
publicationState: 'In review',
image: mediaCreationResponse[0].id
});
`#### Set a publish / unpublish date
Requires:
-
adminToken
- one of the following plugins installed:
- publisher
- SchedulerYou first need to tell the Strapi client which plugin you're using with:
`javascript
strapiClient.configureScheduler('strapi-plugin-publisher');
// Or
strapiClient.configureScheduler('@webbio-strapi-plugin-scheduler');
`Then, set a publish date with:
`javascript
const in10Days = new Date(new Date().setDate(new Date().getDate() + 10));
await strapiClient.addPublishDate('article', creationResponse.data.id, in10Days);
`and an unpublish date with:
`javascript
const in30Days = new Date(new Date().setDate(new Date().getDate() + 30));
await strapiClient.addUnpublishDate('article', creationResponse.data.id, in30Days);
``