Skip to content

Salah4220/ApiProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApiArtWorks - salah habibeche

Description

the API provides general information on works of art, their year of realization, their director.

Installation

...

Use

from the command line in the directory containing main.go, run the code:

$ go run .

Once the code is running, you have a running HTTP server to which you can send requests.

From a new command line window, use curl to make a request to your running web service.

$ curl http://localhost:8080/Oeuvres

From a different command line window, use curl to make a request to your running web service.

$ curl http://localhost:8080/Oeuvres\ --include
--header "Content-Type: application/json"
--request "POST"
--data '{"id": "4","title": "The Modern Sound of Betty Carter","artist": "Betty Carter","Year": 1850}'

From a different command line window, use curl to make a request to your running web service.

$ curl http://localhost:8080/Oeuvres/2

...

Get all items

  GET /api/items
Parameter Type Description
api_key string Required. Your API key

Get item

  GET /api/items/${id}
Parameter Type Description
id string Required. Id of item to fetch

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published