Skip to content

Instantly share code, notes, and snippets.

@alvaromurillo
alvaromurillo / citcom-peritaje-ia-openapi.yml
Created October 24, 2025 05:57
API CITCOM Peritaje - IA
openapi: 3.0.3
info:
title: Citcom Peritaje AI Report Service
version: 1.0.0
description: |
External AI service that generates diagnostic reports based on inspection request data.
This service receives complete request information including property details, damages, and photos,
and returns a professionally formatted PDF report with AI-generated analysis and recommendations.
servers:
- url: https://ai.peritaje.citcom.es/v1
@alvaromurillo
alvaromurillo / citcom-peritaje-cms-openapi.yml
Last active October 24, 2025 05:58
API CITCOM Peritaje - CMS
openapi: 3.0.3
info:
title: Citcom Peritaje CMS API
version: 1.0.0
description: |
REST API that powers the Citcom content management system. It provides endpoints for
administrative authentication, operator onboarding, and the review workflow of inspection requests.
servers:
- url: https://api.peritaje.citcom.es/v1
description: Production
@alvaromurillo
alvaromurillo / citcom-peritaje-app-openapi.yml
Last active October 24, 2025 05:58
API CITCOM Peritaje - App
openapi: 3.0.3
info:
title: Citcom Peritaje APP API
version: 1.0.0
description: |
REST API that powers the mobile application used by citizens to request property damage inspections.
It covers onboarding (municipality validation and OTP login), user registration, property and damage management,
as well as submission and tracking of inspection requests.
servers:
- url: https://api.peritaje.citcom.es/v1
@alvaromurillo
alvaromurillo / MVVM Alert.md
Last active April 27, 2020 10:50
MVVM Alert

UIViewController+MVVM extension usage

https://gist.github.com/alvaromurillo/08ca77823695659400511494cca50a8a

View Model

extension FooViewModel: FooViewModelInput {
    func deleteButtonPressed() {
        let deleteAction = Alert.Action(title: "Delete", message: nil, style: .destructive, action: { /* delete */ })
        let cancelAction = Alert.Action(title: "Cancel", message: nil, style: .cancel, action: nil)
 alertRelay.accept(Alert(title: "Delete..", message: nil, actions: [cancelAction, deleteAction], completion: nil, style: .alert))
@alvaromurillo
alvaromurillo / UIViewController+MVVM.swift
Last active April 27, 2020 11:34
UIViewController+MVVM
// Usage https://gist.github.com/alvaromurillo/ed1edb8be5ef8036118eca992900c795
import UIKit
import RxSwift
import RxCocoa
struct Alert {
enum Style { case alert, actionSheet }
let title: String?
let message: String?
@alvaromurillo
alvaromurillo / watch_os_snippets.md
Last active January 26, 2016 11:52
Watch OS Snippets