diff --git a/app/src/main/java/com/p_vacho/neat_calendar/api/models/CategoryModels.kt b/app/src/main/java/com/p_vacho/neat_calendar/api/models/CategoryModels.kt
index 9d9fcc6..859c546 100644
--- a/app/src/main/java/com/p_vacho/neat_calendar/api/models/CategoryModels.kt
+++ b/app/src/main/java/com/p_vacho/neat_calendar/api/models/CategoryModels.kt
@@ -15,4 +15,9 @@ data class CategoryResponse(
val color: Color,
val owner_user_id: String,
val created_at: OffsetDateTime
-): Parcelable
\ No newline at end of file
+): Parcelable
+
+data class CategoryRequest(
+ val name: String,
+ val color: Color,
+)
\ No newline at end of file
diff --git a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt
index 2b2374d..338a9a2 100644
--- a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt
+++ b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt
@@ -1,8 +1,11 @@
package com.p_vacho.neat_calendar.api.services
+import com.p_vacho.neat_calendar.api.models.CategoryRequest
import com.p_vacho.neat_calendar.api.models.CategoryResponse
+import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
+import retrofit2.http.POST
import retrofit2.http.Path
interface CategoryService {
@@ -15,6 +18,9 @@ interface CategoryService {
@GET("/categories/{category_id}")
suspend fun getCategory(@Path("category_id") categoryId: String): CategoryResponse
+ @POST("/categories")
+ suspend fun createCategory(@Body categoryData: CategoryRequest): CategoryResponse
+
@DELETE("/categories/{category_id}")
suspend fun deleteCategory(@Path("category_id") categoryId: String): Unit
}
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_create_category.xml b/app/src/main/res/layout/activity_create_category.xml
index f17dc48..fa594e7 100644
--- a/app/src/main/res/layout/activity_create_category.xml
+++ b/app/src/main/res/layout/activity_create_category.xml
@@ -1,10 +1,75 @@
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 474f288..ec31f8d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -85,4 +85,5 @@
Categories
Delete category
Event Details
+ Category Name
\ No newline at end of file