@acacha/casteaching
v1.0.12
Published
Casteaching api service
Downloads
36
Readme
Instal·lació
npm install @acacha/casteaching
Usage
Example at: https://github.com/acacha/casteachingIonic/blob/1cb100635433f83b348574c138227c41f79c4fa5/src/main.js#L28-L38
import casteaching from '@acacha/casteaching'
const api = casteaching({baseUrl: 'https://casteaching.alumnedam.me/api'})
// OPTIONAL: for operations that requires token
// Example https://github.com/acacha/casteachingIonic/blob/f8afa6e65e4c5f7c5fde972b85ba95cf347f9c07/src/views/Login.vue#L102
api.setToken(token)
// Obtenir llista de vídeos publicats
api.videos()
// Obtenir vídeo per ID
api.video.show(1)
// Crear video
api.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/...' })
// Update video
api.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/...' })
// Destroy
api.video.destroy(1)
Obsolet (previous to 1.0.5)
import casteaching from '@acacha/casteaching'
// Obtenir llista de vídeos publicats
casteaching.videos()
// Obtenir vídeo per ID
casteaching.video.show(1)
// Crear video
casteaching.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/...' })
// Update video
casteaching.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/...' })
// Destroy
casteaching.video.destroy(1)
Autor
- Sergi Tur Badenas: https://acacha.github.io
- Instagram: https://instagram.com/acacha_dev
- Github: https://github.com/acacha
Codi font dels alumnes
- Audí Bielsa, Daniel: https://github.com/daudi44/casteaching_package_daudi
- Avante Caballé, Marc: https://github.com/AvanteCaballe/casteaching_package
- Brusca Manchón, Albert: https://github.com/Albert-Brusca/casteaching_package
- Goncear, Tudor: https://github.com/tgoncear/casteaching-package
- Moreno Giraldo, Jhon: Jhon1348: https://github.com/Jhon1348/casteaching_package
- Muñoz Zafra, Ferran | https://github.com/Fmunozzafra/casteaching_package_fmz
- Pont Lopez, David: Palanka777: https://github.com/Palanka777/casteaching_package.git
- Rius Rivas, Alba: AlbaRiius: https://github.com/AlbaRiius/casteaching_arr_package
- Tomas Altadill, Axel: AxelTomas99: https://github.com/AxelTomas99/TODO
- Gabriel Urs. Gabriel: l3lackJack https://github.com/l3lackJack/casteaching_package
- Tur Badenas, Sergi: Alumne DAM Prova: https://github.com/acacha_casteaching_package
Paquet a npmjs
- Audí Bielsa, Daniel: https://www.npmjs.com/package/@daudi/casteachingdani
- Avante Caballé, Marc: https://www.npmjs.com/package/@marcavante/casteachingavante
- Brusca Manchón, Albert: https://www.npmjs.com/package/@abrusca/casteachingalbert
- Goncear, Tudor: https://www.npmjs.com/package/tgoncearcasteaching
- Moreno Giraldo, Jhon: https://www.npmjs.com/package/@john_3/casteaching
- Pont Lopez, David: Palanka777: https://www.npmjs.com/package/@palanka777/casteaching_palanka
- Rius Rivas, Alba: https://www.npmjs.com/package/@albariius/casteaching_arr
- Tomas Altadill, Axel: TODO
- Muñoz Zafra, Ferran: https://www.npmjs.com/package/casteaching_fmz
- Urs, Gabriel: https://www.npmjs.com/package/@l3lackjack/casteaching
- Tur Badenas, Sergi: Alumne DAM Prova: https://www.npmjs.com/package/@acacha/casteaching
More info
- https://github.com/acacha/casteaching
- https://github.com/acacha/casteaching_package
Creació de repositori propi
- Scoped packages -> Prefix/espai de noms, evitar conflictes de noms -> @acacha/casteaching
- Moure a un repositori a part
- Actualitzar README
- Github submodules