Skip to content

Instantly share code, notes, and snippets.

@ahmetkucukoglu
ahmetkucukoglu / github_to_iis_deployment
Last active April 27, 2024 15:47
Jenkinsfile - Github to IIS Deployment
//Kaynak kodun adresi
String githubUrl = "https://github.com/ahmetkucukoglu/aspnetcore-ci-sample"
//Kaynak kodun içerisindeki projenin ismi
String projectName = "CISample/CISample.App"
//Kaynak kodun publish edileceği dizin
String publishedPath = "CISample\\CISample.App\\bin\\Release\\netcoreapp2.2\\publish"
//Hedef makinesindeki IIS'de tanımlı olan sitenizin ismi
@ahmetkucukoglu
ahmetkucukoglu / serverless.yml
Last active August 16, 2019 19:23
serverless.yml v1
service: ads-api
provider:
name: aws
runtime: nodejs10.x
region: eu-central-1
profile: serverlessuser
apiKeys:
- AdsAPIKey
@ahmetkucukoglu
ahmetkucukoglu / create_request.json
Created August 13, 2019 19:41
Serverless RESTful API on AWS
{
"definitions": {},
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "CreateRequestModel",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
@ahmetkucukoglu
ahmetkucukoglu / update_request.json
Created August 13, 2019 19:42
Serverless RESTful API on AWS
{
"definitions": {},
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "UpdateRequestModel",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
@ahmetkucukoglu
ahmetkucukoglu / serverless.yml
Last active August 16, 2019 19:24
serverless.yml v2
service: ads-api
custom:
tableName: AdsTable
provider:
name: aws
runtime: nodejs10.x
region: eu-central-1
profile: serverlessuser
@ahmetkucukoglu
ahmetkucukoglu / create.js
Created August 16, 2019 19:13
Create v1
'use strict';
module.exports.create = async event => {
var json = JSON.parse(event.body);
return {
statusCode: 200,
body: JSON.stringify(
{
@ahmetkucukoglu
ahmetkucukoglu / update.js
Created August 16, 2019 19:13
Update v1
'use strict';
module.exports.update = async event => {
var json = JSON.parse(event.body);
return {
statusCode: 200,
body: JSON.stringify(
{
method: 'Update',
@ahmetkucukoglu
ahmetkucukoglu / delete.js
Created August 16, 2019 19:14
Delete v1
'use strict';
module.exports.delete = async event => {
return {
statusCode: 200,
body: JSON.stringify(
{
method: 'Delete',
id: event.pathParameters.id,
@ahmetkucukoglu
ahmetkucukoglu / getAll.js
Created August 16, 2019 19:14
GetAll v1
'use strict';
module.exports.getAll = async event => {
return {
statusCode: 200,
body: JSON.stringify(
{
method: 'Get All'
},
null,
@ahmetkucukoglu
ahmetkucukoglu / getById.js
Created August 16, 2019 19:15
GetById v1
'use strict';
module.exports.getById = async event => {
return {
statusCode: 200,
body: JSON.stringify(
{
method: 'Get By Id',
id: event.pathParameters.id
},