pod 'Strapi'import Strapi
let strapi = Strapi(baseURL: "http://localhost:1337")strapi.login(identifier: "username_or_email", password: "s3cr3t", success: { jwt, user in
}, failure: { error in
})strapi.all(entries: "articles", success: { objects in
}, failure: { error in
})guard let image = UIImage(named: "image_name"), let data = UIImagePNGRepresentation(image) else {
return
}
strapi.upload(files: [image], progress: { progress in
}, success: { objects in
}, failure: { error in
})MIT
