we need a RESTFul api (POST /v1/books) design, this api use add book's: title, author,…
Jump to turn (8)
- 1we need a RESTFul api (POST /v1/books) design, this api use add book's: title, a
- 2help me give the parameter, http code, error message
- 3yes, can use table format this
- 4can give me the update api?
- 5maybe we also need a api, this api can query books by book's field and pageable
- 6this query api should be use POST. we can use one parameters "keyword" replace "
- 7yes, can format this three apis
- 8yes, use add update search api output
- User
we need a RESTFul api (POST /v1/books) design, this api use add book's: title, author, publisher, published date and description
Assistant
Sure, here’s a basic outline:
POST /v1/books
{ “title”: “string”, “author”: “string”, “publisher”: “string”, “published_date”: “string”, “description”: “string” }
- User
help me give the parameter, http code, error message
Assistant
Sure, here are a few ideas:
Parameter:
title - string, required author - string, required publisher - string, required published_date - string, required description - string, required
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.