Giter Club home page Giter Club logo

papxiv's Introduction

papXiv

Paper Management System based on arXiv

feature

  • arXiv APIを用いて論文を検索できる(TODO)
  • 論文の情報のCRUD操作

Preparation

cd path/to/papXiv/gateway

Start the Database (terminal 1)

Dockerを使用してMySQLを起動する

make up

run Go API server (terminal 2)

go run internal/cmd/main.go

Example

論文を登録

curl -X POST -H "Content-Type: application/json" -d '{"subject":"physics", "url":"https://arxiv.org/hogehoge", "published":"2024/03/01", "id":"2d1423b3-15ff-498e-b978-241f2b87de9e", "title": "test title"}' localhost:8080/papers

論文情報の詳細取得

curl localhost:8080/paper/2d1423b3-15ff-498e-b978-241f2b87de9e

Response example:

{"created_at":"2024-03-08T23:35:02+09:00","id":"2d1423b3-15ff-498e-b978-241f2b87de9e","published":"2024/03/01","subject":"physics","title":"test title","updated_at":"2024-03-08T23:35:02+09:00","url":"https://arxiv.org/hogehoge"}%

全ての論文を取得

curl localhost:8080/papers

Response example:

{"papers":[{"id":"2d1423b3-15ff-498e-b978-241f2b87de9e","title":"test title"}],"total":1}

論文情報の更新

subject, url, published, titleは全て任意のため、更新したいもののみリクエストする

curl -X PUT -H "Content-Type: application/json" -d '{"subject":"math", "url":"https://arxiv.org/hogehoge", "published":"2024/03/07", "title": "updated title"}' localhost:8080/paper/2d1423b3-15ff-498e-b978-241f2b87de9e

論文情報の削除

curl -X DELETE localhost:8080/paper/2d1423b3-15ff-498e-b978-241f2b87de9e

papxiv's People

Contributors

mshr0969 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.