-
Notifications
You must be signed in to change notification settings - Fork 0
Improve seeding #335
Copy link
Copy link
Description
Seeding for Terms
This should be the reponse for the get terms by id. The id is an example, this may vary, but the content text must be exactly as described:
{
"version": "v1.0.0",
"content": "{\"ca\":\"<h2>TERMES I CONDICIONS D'ÚS</h2>\\n<p><strong>Darrera actualització:</strong> 22 de desembre de 2025</p>\\n\\n<h3>1. Informació General</h3>\\n<p>Aquest lloc web és operat per [Nom de l'Empresa]. L'accés i l'ús d'aquesta pàgina atribueix la condició d'usuari i implica l'acceptació plena d'aquestes condicions.</p>\\n\\n<h3>2. Propietat Intel·lectual</h3>\\n<p>Tots els continguts, textos, imatges i codi font són propietat de [Nom de l'Empresa] o de tercers amb autorització. Queda prohibida la seva reproducció sense permís previ.</p>\\n\\n<h3>3. Limitació de Responsabilitat</h3>\\n<p>No ens fem responsables dels danys derivats d'interrupcions del servei, virus informàtics o un mal ús del contingut per part de l'usuari.</p>\\n\\n<h3>4. Legislació Aplicable</h3>\\n<p>Aquests termes es regeixen per la normativa vigent i qualsevol litigi se sotmetrà als tribunals de [Ciutat].</p>\",\"es\":\"<h2>TÉRMINOS Y CONDICIONES DE USO</h2>\\n<p><strong>Última actualización:</strong> 22 de diciembre de 2025</p>\\n\\n<h3>1. Información General</h3>\\n<p>Este sitio web es operado por [Nombre de la Empresa]. El acceso y uso de esta página le atribuye la condición de usuario e implica la aceptación plena de estas condiciones.</p>\\n\\n<h3>2. Propiedad Intelectual</h3>\\n<p>Todos los contenidos, textos, imágenes y código fuente son propiedad de [Nombre de la Empresa] o de terceros con autorización. Queda prohibida su reproducción sin permiso previo.</p>\\n\\n<h3>3. Limitación de Responsabilidad</h3>\\n<p>No nos hacemos responsables de los daños derivados de interrupciones del servicio, virus informáticos o un mal uso del contenido por parte del usuario.</p>\\n\\n<h3>4. Legislación Aplicable</h3>\\n<p>Estos términos se rigen por la normativa vigente y cualquier litigio se someterá a los tribunales de [Ciudad].</p>\",\"en\":\"<h2>TERMS AND CONDITIONS</h2>\\n<p><strong>Last updated:</strong> December 22, 2025</p>\\n\\n<h3>1. General Information</h3>\\n<p>This website is operated by [Company Name]. By accessing and using this site, you accept and agree to be bound by these terms and conditions.</p>\\n\\n<h3>2. Intellectual Property</h3>\\n<p>All content, including text, images, and source code, is the property of [Company Name] or authorized third parties. Reproduction without prior permission is prohibited.</p>\\n\\n<h3>3. Limitation of Liability</h3>\\n<p>We are not liable for damages resulting from service interruptions, computer viruses, or improper use of the content by the user.</p>\\n\\n<h3>4. Governing Law</h3>\\n<p>These terms are governed by current legislation, and any disputes will be submitted to the courts of [City].</p>\"}",
"id": "a03cc330-df45-46a3-bda7-c3ba54fc7d16",
"created_at": "2025-12-22T16:12:21.006124"
}Seeding for Items
There should be some items offers seeded. Use realistic photos and descriptions, ensure it works properly. To check the item detail endpoint (items/<id>) should be like this:
{
"title": "Item title",
"description": "Item description",
"price": 123123.0,
"currency": "EUR",
"location": "Lérida, España",
"condition": "Good",
"id": "f680a557-d5bd-4665-a6ab-bac4023f6bb5",
"seller_id": "892d0172-9804-42c4-be0d-930711acd86a",
"status": "active",
"posted_date": "2025-12-27T17:59:07.076970",
"updated_at": "2025-12-27T17:59:07.077047",
"category": {
"id": "5db9a4eb-1ac8-4026-bb78-4886a24dc80a",
"name": "Electronics"
},
"owner_details": {
"id": "892d0172-9804-42c4-be0d-930711acd86a",
"username": "admin",
"full_name": "Admin User",
"avatar_url": "https://avatar.iran.liara.run/public/12"
},
"image_urls": [
"/api/v1/files/public/5293670a-0191-470d-a2f6-e9f46cb0a24f"
]
}Seeding for Job Offers
Create some job offers, ensure the data is realistic and it works as expected. The data should be realistic. This is a response for the job/<id> to ensure that the seeding fills the proper fields:
{
"title": "Job title example",
"description": "This is the job description",
"category": "Engineering",
"job_type": "Full-time",
"workplace_type": "On-site",
"location": "Lleida",
"salary_min": null,
"salary_max": null,
"salary_period": "year",
"company_name": "Company",
"company_description": null,
"company_website": null,
"company_employee_count": null,
"id": "6547712b-6917-4ad5-97a4-24febd42989e",
"user_id": "892d0172-9804-42c4-be0d-930711acd86a",
"created_at": "2025-12-27T17:59:07.117782",
"is_active": true,
"logo_url": null,
"application_count": 0,
"is_saved": false,
"is_applied": false
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done