Git Product home page Git Product logo

practice_build_restapi's Introduction

Demo Restful api by Django framework

  1. 所有新聞文章內容

這個api傳回所有新聞文章的內容。每篇文章包含標題、發佈時間、作者、連結等資訊。

image

  1. 每篇文章內容 http://127.0.0.1:8000/article/4

這個api傳回特定文章詳細內容。透過提供文章的ID,可以獲得該文章的完整訊息。

image

  1. Html呈現新聞文章內容 http://127.0.0.1:8000/news_list

這個頁面以 HTML 格式顯示所有新聞文章的清單。使用者可以直接在網頁上查看文章標題和發布日期,並點擊連結查看每篇文章的詳細內容

image

  1. 關鍵字搜尋新聞文章 http://127.0.0.1:8000/news_article_search/?q=%E9%87%91%E8%9E%8D

這個api查詢新聞文章的資料是否包含這個查詢字

image

image

practice_build_restapi's People

Contributors

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