Code Monkey home page Code Monkey logo

cfpserviceapi's Introduction

CallForPaperServiceAPI

Techstack

Dapper, FluentMigrator, FluentValidator, ASP.NET DI, Postgresql, Npgsql

Prerequisites

NET 6.0 SDK or later

PostgreSQL server

Setup

  1. Docker compose up
  2. Connect and configure DB
  3. Set PostgresConnectionString in appsetings.json
  4. Run project and check for migrations

Endpoints

Applications endpoints

  1. POST /Applications
{
  "author": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "activity": "report",
  "name": "C# Basics",
  "description": "",
  "outline": "very interesting"
}

Response ==> 201 OK

{
  "id": "f1303566-6c19-439f-8063-d302750c7930",
  "author": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "activity": "report",
  "name": "C# Basics",
  "description": "",
  "outline": "very interesting"
}
  1. POST /Applications/{applicationId}/Submit

Response ==> 200 OK

  1. GET /Applications/{applicationId}

Response ==> 200 OK

{
  "id": "f1303566-6c19-439f-8063-d302750c7930",
  "author": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "activity": "report",
  "name": "C# Basics",
  "description": "",
  "outline": "very interesting"
}
  1. GET /Applications/submittedAfter={timeString}

Response ==> 200 OK

[
...
  {
    "id": "f1303566-6c19-439f-8063-d302750c7930",
    "author": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "activity": "report",
    "name": "C# Basics",
    "description": "",
    "outline": "very interesting"
  }
  ...
]
  1. GET /Applications/unsubmittedOlder={timeString}

Response ==> 200 OK

[
...
  {
    "id": "f1303566-6c19-439f-8063-d302750c7930",
    "author": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "activity": "report",
    "name": "C# Basics",
    "description": "",
    "outline": "very interesting"
  }
  ...
]
  1. DELETE /Applications/{applicationId}

Response ==> 200 OK

  1. PUT /Applications/{applicationId}
{
  "activity": "report",
  "name": "report",
  "description": "string",
  "outline": "string"
}

Response ==> 201 OK

{
  "id": "863f91a5-95c7-4995-a661-8375018c4642",
  "author": "3fa85f64-5717-4562-b3fc-2c963f66a666",
  "activity": "report",
  "name": "report",
  "description": "string",
  "outline": "string"
}

Activities endpoints

  1. GET /Activities

Response ==> 200 OK

[
  {
    "name": "report",
    "description": "Доклад, 35-45 минут"
  },
  {
    "name": "masterclass",
    "description": "Мастеркласс, 1-2 часа"
  },
  {
    "name": "discussion",
    "description": "Дискуссия / круглый стол, 40-50 минут"
  }
]

Users endpoints

  1. GET /Users/{userId}/currentapplication

Response ==> 200 OK

{
  "id": "863f91a5-95c7-4995-a661-8375018c4642",
  "author": "3fa85f64-5717-4562-b3fc-2c963f66a666",
  "activity": "report",
  "name": "report",
  "description": "string",
  "outline": "string"
}

cfpserviceapi's People

Contributors

threexsix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.