Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
gist offer outdoor
// retorno de todos url:
// v1/admin/outdoors, { type: '', locale: '', filter: expiration | mais recente }
[
{
name: 'Teste Outdoor 01',
date_start: '2020-12-04',
type: 'slide' | 'banner',
date_end: '2020-12-25',
offer:{
id: '',
image: '',
store: {
name: 'Bambinos',
},
},
}
]
// envio para o back
{
name: 'Teste Outdoor 01',
date_start: '2020-12-04',
date_end: '2020-12-25',
offer:{
id: ''
},
}
// retorno após salvar
{
name: 'Teste Outdoor 01',
date_start: '2020-12-04',
date_end: '2020-12-25',
offer:{
id: ''
image: '',
store: {
name: 'Bambinos',
},
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment