{"repo":"spatie/freek.dev","free":true,"listed":false,"github":"https://github.com/spatie/freek.dev","clone":"git clone https://github.com/spatie/freek.dev.git","description":"The sourcecode of freek.dev","language":"PHP","stars":652,"topics":["laravel","php","blog","application","tailwindcss","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Blog Posts API The site exposes a REST API at /api/posts for programmatic blog post management (e.g. by an AI tool). It is protected by Sanctum token authentication and restricted to admin users. Authentication All requests require a Bearer token in the Authorization header. To create a token, run this in tinker: Endpoints List posts Query parameters (all optional): - published (0 or 1): filter by published status - original content (0 or 1): filter by original content - tag (string): filter by tag name - search (string): search posts by title Returns paginated results. Get a post Create a post Body (JSON): - title (string, required) - text (string, required, markdown) - publish date (ISO 8601 date, nullable) - published (boolean, default false) - original content (boolean, default false) - external url (URL string, nullable) - tags (array of strings) - send automated tweet (boolean, default false) - author twitter handle (string, nullable) - series slug (string, nullable) Returns 201 with the created post. Update a post Same fields as create, all optional. Only send fields you want to change. Delete a post Returns 204 No ","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/freek.dev/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}