composer install
php artisan migrate
php artisan db:seed
php artisan serve
tipo: post url: http://127.0.0.1:8000/api/categoria json a enviar : { "nombre":"ejemploDeCategoria" }
tipo: get url: http://127.0.0.1:8000/api/categoria
tipo: get url: http://127.0.0.1:8000/api/categoria/{id}
tipo: put url: http://127.0.0.1:8000/api/categoria/{id} json a enviar : { "nombre":"ejemploDeCategoria" }
tipo: delete url: http://127.0.0.1:8000/api/categoria/{id}
tipo: post url: http://127.0.0.1:8000/api/post json a enviar : { "titulo":"Post Ejemplo", "contenido":"Ejemplo de contenido", "categorias_id":1 }
tipo: get url: http://127.0.0.1:8000/api/post
tipo: get url: http://127.0.0.1:8000/api/post/{id}
tipo: put url: http://127.0.0.1:8000/api/post/{id} json a enviar : { "titulo":"Post Ejemplo 4", "contenido":"Ejemplo de contenido", "categorias_id":2, }
tipo: delete url: http://127.0.0.1:8000/api/post/{id}
tipo: post url: http://127.0.0.1:8000/api/comentario json a enviar : { "contenido":"Ejemplo de contenido", "post_id":1 }
tipo: get url: http://127.0.0.1:8000/api/comentario
tipo: get url: http://127.0.0.1:8000/api/comentario/{id}
tipo: put url: http://127.0.0.1:8000/api/comentario/{id} json a enviar : { "contenido":"Ejemplo de contenido actualizado", "post_id":1 }
tipo: delete url: http://127.0.0.1:8000/api/comentario/{id}